Hi folks,
I'm using this code to obtain typeof and properties info based on
FullName's mapped class:
public static void FromString(
string EntityFullName,
out PropertyInfo[] properties)
{
properties = null;
System.Type clazz = null;
foreach(PersistentClass cm in
WebSessionProvider.Instance().NHConfig.ClassMappings)
{
if (string.Compare(cm.EntityName, EntityFullName, true) ==
0)
{
clazz =
ReflectHelper.ClassForFullNameOrNull(cm.EntityName);
properties = clazz.GetProperties();
return;
}
}
if (clazz == null)
throw new EntityNotFoundException(EntityFullName);
}
I would like get mapped columns (from NHibernate.Mapping.Column). Is there
a helper available? if not how can I access to collection of Columns of an
entity?
Cheers
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.