private async void CreateDbDocument(object sender, RoutedEventArgs e) { draftDocRootElementOption.Match(async draftDocRootElement => { fileTreeRootElementOption.Match(async fileTreeRootElement => { var pathOption = Optional.Return(FileDialog.Open(new CommonSaveFileDialog(), dbCommonFilter)); pathOption.Match(async value => { var sqlProvider = new SqlDbProvider <PrefabDocumentModel>(value); var models = await PrefabDocumentModel.CreateXmlToModel(draftDocRootElement, fileTreeRootElement); sqlProvider.InitTable(); sqlProvider.Inserts(models); }, () => { }); }, () => { MessageBox.Show(Properties.Resources.FileTreeXMLNotLoaded, Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error); }); }, () => { MessageBox.Show(Properties.Resources.DraftXMLNotLoaded, Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error); }); }
public Task Execute(IJobExecutionContext context) { try { DbProvider = new SqlDbProvider(); OrderDAL orderDAL = new OrderDAL(DbProvider); orderDAL.DailyCheck(); DbProvider.Dispose(); } catch (Exception) { DbProvider.Dispose(); Libs.WriteLog("Error", "ErrorToExec"); } return(null); }
public MarketDataSql(SqlDbProvider provider) { _provider = provider; }
public ProvinceDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public CommentDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public UserDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public HotelDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public TagDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public BaseController() { DbProvider = new SqlDbProvider(); }
public FileUploadedDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public BaseDAL(SqlDbProvider dbProvider) { DbProvider = dbProvider; }
public DistrictDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public HomeDAL(SqlDbProvider dbProvider) : base(dbProvider) { }
public RoleDAL(SqlDbProvider dbProvider) : base(dbProvider) { }