static void Main(string[] args) { var builder = new ContainerBuilder(); AhnqIotContainer.Builder = builder; RepositoryBootStraper.Start(); Console.ReadLine(); }
/// <summary> /// 业务逻辑层启动初始化工作 /// </summary> public static void Start() { RepositoryBootStraper.Start(); //注册本类库的类型 RegisterTypes(); //初始化数据库数据 //创建dbmodel和dto的映射 CreateObjectMapper(); }