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(); }
public string GetTableName(Type entityType) { return(NamingHelper.GetEntityName(entityType)); }