Esempio n. 1
0
        public string ExecuteScalarQuery(string spName, ConnectionType connectionType, DynamicParameters param = null)
        {
            IRepository <DapperEntity> repository = new Repository <DapperEntity>(
                new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType);

            return(repository.ExecuteScalarQuery(spName, param, null, null));
        }
Esempio n. 2
0
        public List <int> ExecuteAll(string spName, ConnectionType connectionType, List <DynamicParameters> paramList)
        {
            IRepository <DapperEntity> repository = new Repository <DapperEntity>(
                new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType);

            return(repository.ExecuteAll(spName, paramList));
        }
Esempio n. 3
0
        public IEnumerable <object> Execute(string spName, ConnectionType connectionType, DynamicParameters param = null)
        {
            IRepository <DapperEntity> repository = new Repository <DapperEntity>(
                new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType);

            return(repository.Execute(spName, param).ToList());
        }
Esempio n. 4
0
        public IEnumerable <object> QuerymultipleRecords(List <ModelBase> modelObject, string spName,
                                                         ConnectionType connectionType, DynamicParameters param = null)
        {
            IRepository <DapperEntity> repository = new Repository <DapperEntity>(
                new DapperEntity(DBSettings.GetDBConnectionString(connectionType)), connectionType);

            return(repository.QuerymultipleRecords(modelObject, spName, param));
        }