Exemple #1
0
        public UniversalEntity RetrieveVodomerById(int id)
        {
            VodomerDAO entDAO = new VodomerDAO();

            sc             = new SqlCommand("RetrieveVodomerById");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@ID", id);
            return(entDAO.retrieveEntity(sc));
        }
Exemple #2
0
        public int Create(Vodomer ent)
        {
            int        createdid = 0;
            VodomerDAO entDAO    = new VodomerDAO();

            sc             = new SqlCommand("CreateVodomer");
            sc.CommandType = CommandType.StoredProcedure;
            addParameters(ent);
            createdid = entDAO.createEntity(sc);
            return(createdid);
        }
Exemple #3
0
        public bool Update(Vodomer ent)
        {
            bool       success = true;
            VodomerDAO entDAO  = new VodomerDAO();

            sc             = new SqlCommand("UpdateVodomer");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@ID", ent.ID);
            addParameters(ent);
            success = entDAO.updateEntity(sc);
            return(success);
        }
Exemple #4
0
        public int Create1(Vodomer ent)
        {
            int        createdid = 0;
            VodomerDAO entDAO    = new VodomerDAO();

            sc             = new SqlCommand("CreateVodomer1");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@exploited", ent.Exploited);
            addParameters(ent);
            createdid = entDAO.createEntity(sc);
            return(createdid);
        }