|
@@ -54,7 +54,8 @@ namespace IMCS.CCS
|
|
});
|
|
});
|
|
|
|
|
|
//ʹÓÃmysql
|
|
//ʹÓÃmysql
|
|
- services.AddDbContext<CcsContext>(options => options.UseMySQL(Configuration.GetConnectionString("mysqlContext")));
|
|
|
|
|
|
+ services.AddDbContext<CcsContext>(options => options.UseMySQL(Configuration.GetConnectionString("mysqlContext"))
|
|
|
|
+ .UseQueryTrackingBehavior(QueryTrackingBehavior.NoTracking));
|
|
|
|
|
|
services.AddCors(options =>
|
|
services.AddCors(options =>
|
|
{
|
|
{
|