Skip to content

Commit f212872

Browse files
committed
移除time
1 parent 5d0d793 commit f212872

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

APIJSON.NET/APIJSON.NET/Data/DbInit.cs

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ public static void Initialize(IApplicationBuilder app)
2626
d.passWordSalt = Guid.NewGuid().ToString();
2727
d.passWord = SimpleStringCipher.Instance.Encrypt("123456", null, Encoding.ASCII.GetBytes(d.passWordSalt));
2828
d.roleCode = "role1";
29-
d.CreateTime = DateTime.Now;
3029
ds.Add(d);
3130
}
3231
db.LoginDb.InsertRange(ds.ToArray());

APIJSON.NET/APIJSON.NET/Models/Login.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public class Login
1515
public string passWordSalt { get; set; }
1616
[SugarColumn(Length = 100, ColumnDescription = "权限组")]
1717
public string roleCode { get; set; }
18-
[SugarColumn(Length = 6)]
19-
public DateTime CreateTime { get; set; }
18+
2019
}
2120
}

APIJSON.NET/APIJSON.NET/appsettings.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ConnectionStrings": {
3-
"DbType": 0, //0:MySql,1:SqlServer,2:Sqlite
4-
"ConnectionString": "Server=localhost; Database=test; User Id=root;Password=password;charset=UTF8;"
3+
"DbType": 1, //0:MySql,1:SqlServer,2:Sqlite
4+
"ConnectionString": "Server=liaozengbo\\sql2018; Database=test; User Id=sa;Password=sa123;"
55
},
66
"Authentication": {
77
"JwtBearer": {

0 commit comments

Comments
 (0)