示例#1
0
 public static string GetMapPropertyName <TEntity>(string propName) where TEntity : class
 {
     return(PropertyMapCollection.GetMapPropertyName(typeof(TEntity), propName));
 }
示例#2
0
 public static string GetMapPropertyName <TEntity>(Expression <Func <TEntity, object> > propSelector) where TEntity : class, IEntity
 {
     propSelector.Guard("'propSelector' cannot be null");
     return(PropertyMapCollection.GetMapPropertyName <TEntity>(propSelector.GetPropertyInfo <TEntity>().Name));
 }