本文仅用来学习记录。
搭建项目架构的时候,需要在类库中进行CodeFirst数据迁移
 
1.在项目的解决方案中,添加类库ERPFrame.Model

2.在类库项目中 添加实体模型和数据上下文

其中TopBaseModel是基类,用于生成唯一标识Guid
 public class TopBaseModel
{
private Guid _id;
public Guid ID {
get {
if (_id == Guid.Empty) {
_id = Guid.NewGuid();
}
return _id;
}
set {
_id = value;
}
}
}
BaseModel继承TopBaseModel,生成创建人,创建日期,修改人,修改日期
 using System.ComponentModel.DataAnnotations;
public class BaseModel:TopBaseModel
{
[Display(Name ="创建时间")]
public DateTime? CreateTime { get; set; }
[Display(Name ="创建人")]
[StringLength(, ErrorMessage = "{0}最多输入{1}个字符")]
public string CreateBy { get; set; }
[Display(Name = "修改时间")]
public DateTime? UpdateTime { get; set; }
[Display(Name = "修改人")]
[StringLength(, ErrorMessage = "{0}最多输入{1}个字符")]
public string UpdateBy { get; set; }
}

Frame_User实体模型,继承BaseModel

 using System.ComponentModel.DataAnnotations;
public class Frame_User:BaseModel
{
[Display(Name ="用户")]
[StringLength(, ErrorMessage = "{0}最多输入{1}个字符")]
public string UserName { get; set; }
[Display(Name = "角色名")]
[StringLength(, ErrorMessage = "{0}最多输入{1}个字符")]
public string RoleName { get; set; }
}

ERPFrameDBContext数据上下文

 public class ERPFrameDBContext : DbContext
{
public ERPFrameDBContext(DbContextOptions<ERPFrameDBContext> options) : base(options)
{
} public DbSet<Frame_User> Frame_User { get; set; }
}

3. 项目文件配置

(1)“appsettings.json”添加配置项,数据库连接字符串

 "ConnectionStrings": {
"todoContext": "Server=.;DataBase=ERPFrame;uid=sa;pwd=123456"
},

(2)“Startup.cs”依赖注入 读取上一步配置的数据库字符串信息,这里的ERPFrameDBContext即上面的数据上下文
  services.AddDbContext<ERPFrameDBContext>(opt => opt.UseSqlServer(Configuration.GetConnectionString("todoContext")));

如上所有配置完成后,重新编译成功后,在控制台进行数据库迁移 :

(1)执行“Add-Migration 版本信息”,如下图
aaarticlea/png;base64,iVBORw0KGgo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u05xAMAAAAAgHX4neb/A9qgJYl1ewOAAAAAAElFTkSuQmCC" alt="" width="868" />
 
(2)执行成功后,在类库项目中会显示对应的数据库迁移记录和快照

(3)执行“update-database”,同步表结构,在数据库便能看到对应的表
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAASQAAAEECAYAAACBVUnaAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAACTgSURBVHhe7Z17sB1Fncfj/rHFLmWhrihlgUEotooyW+iK2fWyuJJdt1jRghUKStEiG/SAAURe0UikkACpDSy5sgZ5CgQQwkV0Aa9RebgqwmIABRH1RlPm8jbRKI8EkvW38+vHTHdP9zzOOZPpOff7qfpV7plHT89k+nN/PfdM9ywCAICWePDBB63Y4UL6+dobaO1dF9K3b/wMff2KE+nWy0+k267+FN01cQ6tvecKtRUAYCbQqpBYRFMPX0XPrP8qPb/xW/TKi98TwT9P/3I1/eQHX6Q1N31WbQ0AGHVaE9Ka606j/3v53kqxcskRai8AwCjTqpBeeGwhbXnmcnrl+W+k8uEMadvmr9EL0xeK9U+uObCSkKbGx2jWrFm56E0WrR+j8Sm5XuPdbmyczM3KjgUA6I/aQvr2d+6kL3zhC6XB2xXBz4k2/2CekA7L56XfrqIX1i+lzT86jDZ9Yw969qZX0YZVs2jqyj+rLiRHHCZSIj0ynSGX2VLKlzNF42O2lHxlAQAGp7aQWDbbt28vDd6uCH6AXVVIF532AbVXmH6ERMmnXpLZjBlG8pYzNU5jRgYEIQHQDK0Jif+a1hkhqe2qCmmyJzOqSbGdmV2pbIuXibDLEPslB5Hlq23UvtYy37GVNN39AOgSrQlpYuVxrQtJCMBZ5i1HNPasa+cry0SWm4TzUGlqvGd0D/NdQb1fKkhTMmlZUo5W2ZO9ZBuz65kvG4Au0JeQtiXCKYthCun8he9Ve4WxMwgdmTR86x1fCPJCygug7Fg+0XkRInH2cyTiK8veTsondy6ORAHoAn0L6ZBjbwxGFSHdsOLY4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HfL3LWTiYymxP55IQWzLDeDAmAG07qQ3BlGOENyl4WE1MSsIzLLmUr/OlbaXdNhddtsIYnZanvJv+742W4GBcAMp3UhueNn1xnkv8lZR9w/15toafnxZ0hJiXIQ/aDIAACdFlIzs45IhickPVGi/FM/MiQAwkQnJF+EhNTcrCNDFFKaBSFDAqCMVoUU86wjOSFpuYgo+ktZJiQuIxOXFBIyJADCtCokAAAwgZAAANEAIQEAogFCAgBEA4QEAIgGCAkAEA0QEgAgGiAkAEA0QEgVKfrmNgBgOHReSO6Y2hzNoF796EdKVcZXUhS9llL8ygoA3afTQmL5DH/WEX71Q78iUjXUu2s+lIzkwG3lQslJR7yyIsuHkMCo06qQYpx1RAqpzqiOxsu0Lur9t0wiUnZFUmHpmPuYEoKQwKjTqpBYNu742b7g7XywgPRsIzoGn3XEIySV5fh7XH4hSbH4xKa6fu5LteIYPeop6fD+vSSrksPkhgOCAqNEdEKqM8h/07OOSGRWU/nRkR4VoGQH8ZDcKFd8TiTFo0uaGZFZDjIkMOp0WkhNzDoiM5s+QslEPO+xhioJhx60zRRRKh2VMZlag5DAqNO6kMzZRThYSO6ykJAam3VEYzxQdnGzl2IKnjM5FEkHQgKjThRC8s02oqNMSCIzGuqsI5qCrprIXob04NvBlI7u1oWjTh0AiJ/WheTOMMIZkrssJKQmZh1JmUwkwlkQN3zrAXTZ95ECQ9V6Iy8pZEhgJtO6kNzxs+sM8t/krCMW6q9sqUjcv5CVgi4bAFXotJCanHXERnbfssymblcJQgKgCtEJyRchITU564jAyIxsEehuWVUxQUgAVKFVIcU564iRDZV2zeS2qSTcrl3FMB9HpdKp+NWB+t1HAOKlVSEBAIAJhAQAiAZbSJvp/wHy1gRrWwOPfwAAAABJRU5ErkJggg==" alt="" />
 
注:
可能会遇到的问题:
 Both Entity Framework 6.x and Entity Framework Core commands are installed. The Entity Framework 6 version is executing. You can fully qualify the command to select which one to execute, 'EntityFramework\Update-Database' for EF6.x and 'EntityFrameworkCore\Update-Database' for EF Core.
解决方法:
EntityFrameworkCore\Add-Migration InitialDb
EntityFrameworkCore\Update-Database

.Net Core-类库中创建CodeFirst的更多相关文章

  1. NET Core MVC中创建PDF

    使用Rotativa在ASP.NET Core MVC中创建PDF 在本文中,我们将学习如何使用Rotativa.AspNetCore工具从ASP.NET Core中的视图创建PDF.如果您使用ASP ...

  2. 在.NET Core类库中使用EF Core迁移数据库到SQL Server

    前言 如果大家刚使用EntityFramework Core作为ORM框架的话,想必都会遇到数据库迁移的一些问题. 起初我是在ASP.NET Core的Web项目中进行的,但后来发现放在此处并不是很合 ...

  3. .NET Core类库中读取配置文件

    最近在开发基于.NET Core的NuGet包,遇到一个问题:.NET Core中已经没有ConfigurationManager类,在类库中无法像.NET Framework那样读取App.conf ...

  4. .NET Core 类库中读取appsettings.json

    { "Logging": { "IncludeScopes": false, "LogLevel": { "Default&quo ...

  5. 使用Rotativa在ASP.NET Core MVC中创建PDF

    在本文中,我们将学习如何使用Rotativa.AspNetCore工具从ASP.NET Core中的视图创建PDF.如果您使用ASP.NET MVC,那么Rot​​ativa工具已经可用,我们可以使用 ...

  6. ASP.NET Core 类库中取读配置文件 appsettings.json

    首先引用NuGet包 Microsoft.Extensions.Configuration Microsoft.Extensions.Configuration.Json Microsoft.Exte ...

  7. 在ABP中创建Person实体类

    经过之前的准备目前我们的项目,终于可以搞正式的开发工作了. 创建实体Person 在Core类库中添加Person类 /// <summary> /// 联系人 /// </summ ...

  8. EF Core使用CodeFirst在MySql中创建新数据库以及已有的Mysql数据库如何使用DB First生成域模型

    官方教程:https://docs.microsoft.com/en-us/aspnet/core/data/?view=aspnetcore-2.1 使用EF CodeFirst在MySql中创建新 ...

  9. EF-关于类库中EntityFramework之CodeFirst(代码优先)的操作浅析

    前有ADO.NET,后有ORM模式的EntityFramework.这两种技术都实现了对数据库的访问操作.如果要说哪种技术好,就看项目架构的大小,使用者的熟练程度等等,毕竟萝卜白菜,各有所爱. 今天要 ...

随机推荐

  1. js注册表单中实现地区选择效果

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  2. 第09组 Beta冲刺(2/4)

    队名:软工9组 组长博客:https://www.cnblogs.com/cmlei/ 作业博客:https://edu.cnblogs.com/campus/fzu/SoftwareEngineer ...

  3. qtcreator 添加 cppreference 离线文档

    https://en.cppreference.com/w/File:qch_book_20190607.zip 下载后放到 D:\Qt\Qt5.10.0\Docs\Qt-5.10.0目录下, 并在q ...

  4. js实现字符串切割并转换成对象格式保存到本地

    // split() 将字符串按照指定的规则分割成字符串数组,并返回此数组(字符串转数组的方法) //分割字符串 var bStr = "www.baidu.con"; var a ...

  5. Oracle系列十一 数据处理

    数据操纵语言 DML(Data Manipulation Language – 数据操纵语言) 可以在下列条件下执行: 向表中插入数据 修改现存数据 删除现存数据 事务是由完成若干项工作的DML语句组 ...

  6. 使用response将html拼接页面写到当前浏览器端完成自动提交功能

    /** * 准备中间页面所需参数 * add by linyan  2014-9-22 * @param url * @param params * @param charset * @return ...

  7. [LeetCode] 253. Meeting Rooms II 会议室 II

    Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si ...

  8. [LeetCode] 500. Keyboard Row 键盘行

    Given a List of words, return the words that can be typed using letters of alphabet on only one row' ...

  9. C# .NET 支付宝IOT小程序AES密钥解密

    实际测试 KEY 是 16个 byte,byte[] byteKEY = System.Convert.FromBase64String(key);     注意:是Convert.FromBase6 ...

  10. python:单例模式--使用__new__(cls)实现

    单例模式:即一个类有且仅有一个实例. 那么通过python怎么实现一个类只能有一个实例呢. class Earth: """ 假如你是神,你可以创造地球 "&q ...