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)); }