Hi!
Quote:
Does the current release support generics ? or you need to get lastest version from subversion and compile it ?
The current official NHibernate does [b]not/b[] support generics, but that wasn't IMO the intent of your original question... what you asked was:
Quote:
Is there a good example or a standard way to provide strong typed collections for use with ObjectDatasource in .NET?
Now... the ObjectDatasource is a .NET 2.0 component... and nothing prevents you from wrapping your "non-generic obtained from hibernate collection" in to a generic colection:
Code:
protected IList<TPonoType> GetTypedList(IList ponos)
{
IEnumerable<TPonoType> enumerable = (TPonoType[]) ArrayList.Adapter(ponos).ToArray(typeof (TPonoType));
return new List<TPonoType>(enumerable);
}
After all, you seem to need generics at the ObjectDatasource... don't you?