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); }
public static string GetMapPropertyName <TEntity>(string propName) where TEntity : class { return(PropertyMapCollection.GetMapPropertyName(typeof(TEntity), propName)); }
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)); }