{"action":"closed","issue":{"url":"https://api.github.com/repos/52ABP/LTMCompanyNameFree.YoyoCmsTemplate/issues/13","repository_url":"https://api.github.com/repos/52ABP/LTMCompanyNameFree.YoyoCmsTemplate","labels_url":"https://api.github.com/repos/52ABP/LTMCompanyNameFree.YoyoCmsTemplate/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/52ABP/LTMCompanyNameFree.YoyoCmsTemplate/issues/13/comments","events_url":"https://api.github.com/repos/52ABP/LTMCompanyNameFree.YoyoCmsTemplate/issues/13/events","html_url":"https://github.com/52ABP/LTMCompanyNameFree.YoyoCmsTemplate/issues/13","id":391135811,"node_id":"MDU6SXNzdWUzOTExMzU4MTE=","number":13,"title":"An error occurred while starting the application.","user":{"login":"anlew999","id":22049410,"node_id":"MDQ6VXNlcjIyMDQ5NDEw","avatar_url":"https://avatars3.githubusercontent.com/u/22049410?v=4","gravatar_id":"","url":"https://api.github.com/users/anlew999","html_url":"https://github.com/anlew999","followers_url":"https://api.github.com/users/anlew999/followers","following_url":"https://api.github.com/users/anlew999/following{/other_user}","gists_url":"https://api.github.com/users/anlew999/gists{/gist_id}","starred_url":"https://api.github.com/users/anlew999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anlew999/subscriptions","organizations_url":"https://api.github.com/users/anlew999/orgs","repos_url":"https://api.github.com/users/anlew999/repos","events_url":"https://api.github.com/users/anlew999/events{/privacy}","received_events_url":"https://api.github.com/users/anlew999/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-14T14:37:40Z","updated_at":"2018-12-19T03:06:10Z","closed_at":"2018-12-19T03:06:10Z","author_association":"NONE","body":"\r\nAn error occurred while starting the application.\r\nSqlException: 列名 'CreatorUserId1' 无效。\r\n列名 'DeleterUserId1' 无效。\r\n列名 'LastModifierUserId1' 无效。\r\nSystem.Data.SqlClient.SqlConnection.OnError(SqlException exception, bool breakConnection, Action<Action> wrapCloseInAction)\r\n===========================================================\r\n\r\n>  找到原因了。。EntityFrameworkCore 。DbContext。OnModelCreating必须加base.OnModelCreating(modelBuilder);\r\n\r\n===========================================================\r\nVVV.EntityFrameworkCore.Seed.Tenants.DefaultTenantBuilder.CreateDefaultTenant() in DefaultTenantBuilder.cs\r\n+\r\n        \r\n\r\n>   ###   **var defaultTenant = _context.Tenants.IgnoreQueryFilters().FirstOrDefault(t => t.TenancyName == AbpTenantBase.DefaultTenantName);**\r\n\r\nVVV.EntityFrameworkCore.Seed.Tenants.DefaultTenantBuilder.Create() in DefaultTenantBuilder.cs\r\n+\r\n            CreateDefaultTenant();\r\nVVV.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(VVVDbContext context) in SeedHelper.cs\r\n+\r\n            new DefaultTenantBuilder(context).Create();\r\nVVV.EntityFrameworkCore.Seed.SeedHelper.WithDbContext<TDbContext>(IIocResolver iocResolver, Action<TDbContext> contextAction) in SeedHelper.cs\r\n+\r\n                    contextAction(context);\r\nVVV.EntityFrameworkCore.Seed.SeedHelper.SeedHostDb(IIocResolver iocResolver) in SeedHelper.cs\r\n+\r\n            WithDbContext<VVVDbContext>(iocResolver, SeedHostDb);\r\nVVV.EntityFrameworkCore.VVVEntityFrameworkModule.PostInitialize() in VVVEntityFrameworkModule.cs\r\n+\r\n                SeedHelper.SeedHostDb(IocManager);\r\nSystem.Collections.Generic.List<T>.ForEach(Action<T> action)\r\nAbp.AbpBootstrapper.Initialize() in AbpBootstrapper.cs\r\nAbp.AspNetCore.AbpApplicationBuilderExtensions.InitializeAbp(IApplicationBuilder app) in AbpApplicationBuilderExtensions.cs\r\nAbp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app, Action<AbpApplicationBuilderOptions> optionsAction) in AbpApplicationBuilderExtensions.cs\r\nVVV.Web.Host.Startup.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) in Startup.cs\r\n+\r\n            app.UseAbp(options => { options.UseAbpRequestLocalization = false; }); // Initializes ABP framework.\r\nMicrosoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)\r\nMicrosoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()"}}
{"actor":{"display_login":"staneee"}}