Added comments to mvc template

pull/899/head
Halil ibrahim Kalkan 7 years ago
parent 7e00a1461d
commit f94f5c575b

@ -2,8 +2,8 @@
{
public static class MyProjectNameConsts
{
public const string DefaultDbTablePrefix = "App";
public const string DbTablePrefix = "App";
public const string DefaultDbSchema = null;
public const string DbSchema = null;
}
}

@ -22,7 +22,7 @@ namespace MyCompanyName.MyProjectName.EntityFrameworkCore
{
base.OnModelCreating(builder);
/* Configure your shared tables (with included modules) here */
/* Configure the shared tables (with included modules) here */
builder.Entity<AppUser>(b =>
{
@ -33,6 +33,7 @@ namespace MyCompanyName.MyProjectName.EntityFrameworkCore
b.ConfigureConcurrencyStamp();
b.ConfigureAbpUser();
//Moved customization to a method so we can share it with the MyProjectNameMigrationsDbContext class
b.ConfigureCustomUserProperties();
});

@ -1,8 +1,6 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using MyCompanyName.MyProjectName.Users;
using Volo.Abp;
using Volo.Abp.Identity;
using Volo.Abp.Users;
namespace MyCompanyName.MyProjectName.EntityFrameworkCore
@ -13,12 +11,11 @@ namespace MyCompanyName.MyProjectName.EntityFrameworkCore
{
Check.NotNull(builder, nameof(builder));
var tablePrefix = MyProjectNameConsts.DefaultDbTablePrefix;
var schema = MyProjectNameConsts.DefaultDbSchema;
/* Configure your own tables/entities inside here */
//builder.Entity<YourEntity>(b =>
//{
// b.ToTable(tablePrefix + "YourEntities", schema);
// b.ToTable(MyProjectNameConsts.DbTablePrefix + "YourEntities", MyProjectNameConsts.DbSchema);
// //...
//});

Loading…
Cancel
Save