-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.json
81 lines (79 loc) · 4.73 KB
/
appsettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"ApplicationName": "AspNetCore2Angular5",
"Database": {
// If this is set, then an SQLite database will be using as main database server, instead of SQLServer database
// [ After changing main database between SQL Server and SQLite, you must execute ef migration,
// You may need to remove all the migrations for previous database provider [ SQLite, SQL Server etc. ]
// some of migration options are platform specific, such as int type auto increment,
// while sqlite provider, generated migrate script, .Annotation("Sqlite:Autoincrement", true),
// On the other hand, SQL Server migrate script, .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn) ]
// [ Surprisingly: SQLite provider is accepting any migrations, generated with SQL Server Provider, not needed to remove Migrations and apply new Migration ]
// [ More tests required to reach in a decision, that all the Migrations generate with SQL Server Provider, just 'UseSQLite': 'false', then set 'true' again ]
"UseSQLite": "true",
// not implemented yet
"UseInMemory": "false"
},
"MigrateAndSample": {
// Please, be sure what you are going to do, when setting up first ('IfRemoveAndCreate') and last ('IfIgnoreEnvironment') flag of 'MigrateAndSample'
// This could serious damage of your production database and big data loss can occur
"IfRemoveAndCreate": "false", // If this is set, then EF Core Provider will remove any existing database and create new Database by using Migrations
// only call sample data 'IfCallSampleData', is not providing any updated sample data, unless using with 'IfRemoveAndCreate'
"IfCallSampleData": "false", // If this set, then EF Core Provider will try to inject sample data to the existing or newly created database
"IfIgnoreEnvironment": "false" // If this is set, the previous two statement will ignore the application running environment,
// default (false) , only in development mode, remove and create + call sample data allowed
},
"ConnectionStrings": {
"DefaultConnection": "DataSource=app.db",
// "ConMSSQL": [
// {
// "server": "192.168.1.7,1401",
// "database": "AspNetCore2Angular5Db",
// "authenticationType": "SqlLogin",
// "user": "sa",
// "password": "",
// "emptyPasswordInput": false,
// "savePassword": true,
// "profileName": "AspNetCore2Angular5Db Profile"
// }
// ],
// following connection string using SQL Server as Main Database server [127.0.0.1,1401 used for SQL Server is on Docker in Mac Osx, will replace by your SQL Server Conn]
"ConMSSQL": "Data Source=127.0.0.1,1401;Database=AspNetCore2Angular5Db;Persist Security Info=False;Integrated Security=false;Connect Timeout=15;Encrypt=false;TrustServerCertificate=false;ApplicationIntent=ReadWrite;MultiSubnetFailover=false;MultipleActiveResultSets=true;",
// following connection string as alternative to using SQL Server as Main Database server
"ConSQLiteApp": "Data Source=AspNetCore2Angular5Db.db",
// following connection string using SQLite as Secondary Database server
"ConSQLite": "Data Source=AspNetCore2Angular5.db",
// following connection string using SQLite for Localization Data
"ConLocalization": "Data Source=LocalizationRecords.sqlite"
},
// following connection string as alternative to using SQL Server as Main Database server
"InMemoryDatabase": {
"Name": "AspNetCore2Angular5Db"
},
"Localization": {
"CreateNewRecordWhenLocalisedStringDoesNotExist": "false" // If this is set, then the Context will add any not found localized key-value pair into database
// this ignores, application running environment, the default is only in development mode
// in development mode, this flag is ignored, and Context is automatically adding not found kay-value into database
},
"SiteConfiguration": {
"AccessTokenLifetime": "1800",
"IdentityTokenLifetime": "1800",
"RefreshTokenLifetime": "3600"
},
"SqlContextOptions": {
"SqlSchemaName": "",
/// <summary>
/// Connection String for Localization Model Context Database
/// </summary>
"ConLocalization": "Data Source=LocalizationRecords.sqlite",
/// <summary>
/// Replace end of sentence (full-stop) in English with local Symbol of end of Sentence
/// </summary>
"FullStop": "|"
},
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning"
}
}
}