public ReportsRepository()
        {
            Connection conn = new Connection();

            connectString = conn.GetDirectConnString();
            sqlcmd        = SqlFactory.MSSQL();
        }
        public ProposalRepository()
        {
            sqlcmd   = SqlFactory.MSSQL();
            prop     = new Proposal();
            propinfo = new ProposalInfo();

            // ...MoreComing.
        }
예제 #3
0
 public DapperCrud(string connectionString, ISqlCommands <T> sqlCommands = null)
 {
     if (sqlCommands != null)
     {
         _sqlCommands = sqlCommands;
     }
     _conn = new SqlConnection(connectionString);
 }
예제 #4
0
        public BudgetRepository()
        {
            //string connString = Settings.Default.EntityConnection;
            //  Context = new BOTADBEntities1();
            Connection conn = new Connection();

            connectString = conn.GetDirectConnString();
            sqlcmd        = SqlFactory.MSSQL();
        }
예제 #5
0
        public AccountRepository()
        {
            //  conn = new Connection();
            //  _configuration = ObjectFactory.GetInstance<IConfiguration>();

            account = new Account();
            sqlcmd  = SqlFactory.MSSQL();

            //Later we can add more like SqlFactory.Oracle(); Which will still have the same sqlcmd.GetUserByName(Username) methods.
            //How? StrucuteMapBootStrapper will switch the ISqlCommands to another Implementer!
        }
예제 #6
0
 public SampleController(ISqlCommands commands, IDistributedCache distributedCache)
 {
     _commands         = commands;
     _distributedCache = distributedCache;
 }