Пример #1
0
        private static Task ImportFrameworksFunding(IProviderCommitmentsDbContext db, DataTable standardsFundingDataTable)
        {
            var standardsFunding = new SqlParameter("frameworksFunding", SqlDbType.Structured)
            {
                TypeName = "FrameworksFunding",
                Value    = standardsFundingDataTable
            };

            return(db.ExecuteSqlCommandAsync("EXEC ImportFrameworksFunding @frameworksFunding", standardsFunding));
        }
Пример #2
0
        private static Task ImportStandards(IProviderCommitmentsDbContext db, DataTable standardsDataTable)
        {
            var standards = new SqlParameter("standards", SqlDbType.Structured)
            {
                TypeName = "Standards",
                Value    = standardsDataTable
            };

            return(db.ExecuteSqlCommandAsync("EXEC ImportStandards @standards", standards));
        }