示例#1
0
 public static void AddMap <TEntity>(
     Expression <Func <TEntity, object> > propFromSelector,
     Expression <Func <TEntity, object> > propToSelector)
     where TEntity : class, IEntity
 {
     PropertyMapCollection.AddMap <TEntity, TEntity>(propFromSelector, propToSelector, false);
 }
示例#2
0
 public static string GetMapPropertyName <TEntity>(string propName) where TEntity : class
 {
     return(PropertyMapCollection.GetMapPropertyName(typeof(TEntity), propName));
 }
示例#3
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));
 }