示例#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));
        }
示例#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));
        }
示例#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());
        }
示例#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));
        }