Beispiel #1
0
        private void SaveImportToDatabase()
        {
            Import <T> temp = new Import <T>().Where("import_month ={0} AND import_year={1}".Format(_import.ImportMonth, _import.ImportYear)).FirstOrDefault();

            if (temp == null)
            {
                _import.Add();
            }
            else
            {
                _import = temp;
            }
        }