internal IDataAccess CreateDataAccess() { if (ConnectionString.IsEmpty() && ConnectionStringKey.HasValue()) { ConnectionString = Config.GetConnectionString(ConnectionStringKey); } return(DataAccess.Create(SqlClient, ConnectionString)); }
internal IDataAccess CreateDataAccess() { if (ConnectionString.IsEmpty() && ConnectionStringKey.HasValue()) { ConnectionString = Context.Current.GetService <IConnectionStringProvider>() .GetConnectionString(ConnectionStringKey); } return(DataAccess.Create(SqlClient, ConnectionString)); }