Пример #1
0
        public void GetService()
        {
            //usage
            SqlServiceFactory <IDbContext> factory = new SqlServiceFactory <IDbContext>();
            dynamic sqlAccess = factory.CreateService <SqlDbAccess>();

            sqlAccess.SetConnection("connectionString");
            Console.WriteLine(sqlAccess.GetType());
        }
Пример #2
0
 public RouteSqlRepository()
 {
     _sqlServerService = SqlServiceFactory.CreateService();
 }