var dllName = "EasyHook.dll"; var dllPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, dllName); if (System.Runtime.InteropServices.RuntimeEnvironment.FromGlobalAccessCache(Assembly.LoadFrom(dllPath))) new System.EnterpriseServices.Inte
首先回顾下EF中常规使用流程 1.新建实体类以及实体配置(data annotation或fluent api) [Table("Users")] public class Users { [Key] public Guid Id { get; set; } [StringLength()] public string Name { get; set; } } 2.新建数据库上下文类MyDbContext public class MyDbContext : DbContext { p