public LocalDataService(IDbConnectionService dbConnectionService) { this.dbConnectionService = dbConnectionService; connection = dbConnectionService.Connection; connection.CreateTable<Person>(); }
public LocalDatabaseService() { dbConnectionService = DependencyService.Get <IDbConnectionService>(); var connectionFactory = new Func <SQLiteConnectionWithLock>(() => dbConnectionService.GetConnection()); database = new SQLiteAsyncConnection(connectionFactory); }
public ValuesController( IEnvironmentSettingsService environmentSettingsService, IDbConnectionService dbConnectionService ) { _environmentSettingsService = environmentSettingsService; _dbConnectionService = dbConnectionService; }
private static ICommunicationListener CreateTcpListener(IDbConnectionService service, StatelessServiceContext context) { return(new WcfCommunicationListener <IDbConnectionService>( wcfServiceObject: service, serviceContext: context, endpointResourceName: "DatabaseConnectionService", listenerBinding: WcfUtility.CreateTcpListenerBinding() )); }
public DBService(IDbConnectionService dbConnectionService) { if (dbConnectionService == null) { throw new ArgumentNullException("Value cannot be null", nameof(dbConnectionService)); } DbConnectionService = dbConnectionService; }
public MainViewModel(IServerService serverService, IApplicationContextService applicationContextService, ILoggingService loggingService, IUserPreferenceService userPreferenceService, IDbConnectionService dbConnectionService) { _serverService = serverService; _applicationContextService = applicationContextService; _loggingService = loggingService; _userPreferenceService = userPreferenceService; _dbConnectionService = dbConnectionService; DataMigrateCommand = new AsyncRelayCommand(DataMigrateCommandHandler); ConnectToOutputServer = new AsyncRelayCommand(ConnectToOutputServerHandler); ConnectToInputServer = new AsyncRelayCommand(ConnectToInputServerHandler); }
public ConnectionStringEditor(IDbConnectionService dbcs) { _dbcs = dbcs ?? VsAppShell.Current.GetService <IDbConnectionService>(); }
public AuthenticationService(IDbConnectionService dbConnectionService) { this.DbConnectionService = dbConnectionService; }
public UserService(IDbConnectionService conn, IMapper mapper) { Mapper = mapper; Db = conn.GetDbConnection(); }
public LoggingService(IDbConnectionService dbConnectionService) { this.DbConnectionService = dbConnectionService; }
public ConnectionStringEditor(IDbConnectionService dbcs) { _dbcs = dbcs ?? VsAppShell.Current.ExportProvider.GetExportedValue<IDbConnectionService>(); }
public CategoryService(IDbConnectionService conn, IMapper mapper) { Db = conn.GetDbConnection(); Mapper = mapper; }
public AddDbConnectionCommand(IDbConnectionService dbcs, IProjectSystemServices pss, IProjectConfigurationSettingsProvider pcsp, IRInteractiveWorkflow workflow) : base(RPackageCommandId.icmdAddDatabaseConnection, "dbConnection", pss, pcsp, workflow) { _dbcs = dbcs; }
public AddDbConnectionCommand(IDbConnectionService dbcs, IProjectSystemServices pss, IProjectConfigurationSettingsProvider pcsp, IRInteractiveWorkflow workflow) : base(RPackageCommandId.icmdAddDatabaseConnection, "dbConnection", pss, pcsp, workflow) { _dbcs = dbcs; }
public ConnectionStringEditor(IDbConnectionService dbcs) { _dbcs = dbcs ?? VsAppShell.Current.ExportProvider.GetExportedValue <IDbConnectionService>(); }
public UserDB(string hostAddress, string hostName, string hostPassword, string databaseName) { _dbConnectionService = new DbConnectionService(hostAddress, hostName, hostPassword, databaseName); }