예제 #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));
 }