Esempio n. 1
0
        private void ImplementDbEntityNameProperty(IClassBuilder entityClass, Type entityType)
        {
            var entityName = NamingHelper.GetEntityName(entityType);

            var getter = entityClass.HasProperty <string>(nameof(IEntity.DbEntityName)).WithModifier("public").HasGetter();

            getter.Write("return ").String(entityName).EndStatement();
        }
Esempio n. 2
0
 public string GetTableName(Type entityType)
 {
     return(NamingHelper.GetEntityName(entityType));
 }