Пример #1
0
            internal IDataAccess CreateDataAccess()
            {
                if (ConnectionString.IsEmpty() && ConnectionStringKey.HasValue())
                {
                    ConnectionString = Config.GetConnectionString(ConnectionStringKey);
                }

                return(DataAccess.Create(SqlClient, ConnectionString));
            }
Пример #2
0
            internal IDataAccess CreateDataAccess()
            {
                if (ConnectionString.IsEmpty() && ConnectionStringKey.HasValue())
                {
                    ConnectionString = Context.Current.GetService <IConnectionStringProvider>()
                                       .GetConnectionString(ConnectionStringKey);
                }

                return(DataAccess.Create(SqlClient, ConnectionString));
            }