예제 #1
0
        public IFunctionData CreateFunctionData(IFuncInterfaceDescription funcInterface)
        {
            FunctionData functionData = new FunctionData();

            functionData.Initialize(funcInterface);
            return(functionData);
        }
예제 #2
0
        public static void Main()
        {
            var host = CreateHostBuilder();

            using (var scope = host.Services.CreateScope())
            {
                var services = scope.ServiceProvider;
                var context  = services.GetRequiredService <WebAppDBContext>();
                AccountData.Initialize(context);
                AdminData.Initialize(context);
                FunctionData.Initialize(context);
                ProductData.Initialize(context);
                ProductTypeData.Initialize(context);
                SaleData.Initialize(context);
                RegionData.Initialize(context);
                ProvinceData.Initialize(context);
                WardData.Initialize(context);
                AuthorData.Initialize(context);
            }

            host.Run();
        }