v1.0.7
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.4" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.4" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
|
||||
namespace CC.Yi.Model
|
||||
{
|
||||
public partial class DataContext : DbContext
|
||||
public partial class DataContext : IdentityDbContext
|
||||
{
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options)
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<result_user> result_user { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
|
||||
namespace CC.Yi.Model
|
||||
{
|
||||
public partial class DataContext :DbContext
|
||||
public partial class DataContext :IdentityDbContext
|
||||
{
|
||||
public DbSet<student> student { get; set; }
|
||||
}
|
||||
|
||||
@@ -17,10 +17,11 @@ using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
|
||||
namespace CC.Yi.Model
|
||||
{
|
||||
public partial class DataContext :DbContext
|
||||
public partial class DataContext :IdentityDbContext
|
||||
{
|
||||
<# foreach(string k in ModelData){
|
||||
#>
|
||||
|
||||
13
CC.Yi.Model/result_user.cs
Normal file
13
CC.Yi.Model/result_user.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace CC.Yi.Model
|
||||
{
|
||||
public class result_user : IdentityUser
|
||||
{
|
||||
//你可以在这里添加你额外需要的字段例如
|
||||
//public int level { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user