コード例 #1
0
        public static void AddToDossier(int dossierId)
        {
            //Creates missing categories and sub categories (Expenses)
            _contextST.CreateCategoriesSubcategoriesFromImport(dossierId, true);
            _contextST.CreateCategoriesSubcategoriesFromImport(dossierId, false);

            //Imports into records from temporary records (Revenues)
            _contextST.CreateRecordsFromImport(dossierId, true);
            _contextST.CreateRecordsFromImport(dossierId, false);

            //empty table Record TMP
            _contextST.DeleteFromRecordTmp(dossierId);
        }
コード例 #2
0
 public static void CreateCategoriesFromImport(int dossierId, bool isExpense)
 {
     using (PersonalFinancesDBEntities context = new PersonalFinancesDBEntities())
     {
         context.CreateCategoriesSubcategoriesFromImport(dossierId, isExpense);
     }
 }