Exemple #1
0
        public TblUserCollection FetchByQuery(Query qry)
        {
            var coll = new TblUserCollection();

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemple #2
0
        public TblUserCollection FetchAll()
        {
            var coll = new TblUserCollection();
            var qry  = new Query(TblUser.Schema);

            coll.LoadAndCloseReader(qry.ExecuteReader());
            return(coll);
        }
Exemple #3
0
        public static TblUserCollection GetTblUserCollection(string varPkSBranchID)
        {
            var cmd =
                new QueryCommand(
                    "SELECT * FROM [dbo].[tbl_Users] INNER JOIN [tbl_RolesForUsers] ON [tbl_Users].[FP_sBranchID] = [tbl_RolesForUsers].[FP_sBranchID] WHERE [tbl_RolesForUsers].[FP_sBranchID] = @FP_sBranchID",
                    Schema.Provider.Name);

            cmd.AddParameter("@FP_sBranchID", varPkSBranchID, DbType.String);
            IDataReader rdr  = DataService.GetReader(cmd);
            var         coll = new TblUserCollection();

            coll.LoadAndCloseReader(rdr);
            return(coll);
        }