Beispiel #1
0
        public override void Fill(DomainObject obj, IDataReader dr)
        {
            EEDUCACIONSENCE objEDUCACIONSENCE = obj as EEDUCACIONSENCE;

            //Poner las rutinas del Tools que se necesiten

            objEDUCACIONSENCE.CODEDUCACION = Utiles.ConvertToInt16(dr["COD_EDUCACION"]);

            objEDUCACIONSENCE.EDUCACION = Utiles.ConvertToString(dr["EDUCACION"]);
        }
Beispiel #2
0
        protected override IDbDataParameter[] GetDeleteParameters(DomainObject obj, DB db)
        {
            IDbDataParameter[] prms = db.GetArrayParameter(1);
            EEDUCACIONSENCE    objEDUCACIONSENCE = obj as EEDUCACIONSENCE;

            prms[0]               = db.GetParameter();
            prms[0].Value         = objEDUCACIONSENCE.CODEDUCACION;
            prms[0].ParameterName = "@COD_EDUCACION";

            return(prms);
        }
Beispiel #3
0
        protected override IDbDataParameter[] GetInsertParameters(DomainObject obj, DB db)
        {
            IDbDataParameter[] prms = db.GetArrayParameter(1);
            EEDUCACIONSENCE    objEDUCACIONSENCE = obj as EEDUCACIONSENCE;

            //Poner las rutinas del Tools que se necesiten

            prms[1]               = db.GetParameter();
            prms[1].Value         = objEDUCACIONSENCE.EDUCACION;
            prms[1].ParameterName = "@EDUCACION";

            return(prms);
        }
Beispiel #4
0
 public bool Update(EEDUCACIONSENCE objEDUCACIONSENCE)
 {
     try
     {
         _objDAL.Update(objEDUCACIONSENCE);
         return(true);
     }
     catch (Exception ex)
     {
         Log objLog = new Log();
         objLog.EscribirLog(ex);
         return(false);
     }
 }
Beispiel #5
0
 public bool Save(EEDUCACIONSENCE objEDUCACIONSENCE)
 {
     try
     {
         objEDUCACIONSENCE.Save();
         return(true);
     }
     catch (Exception ex)
     {
         Log objLog = new Log();
         objLog.EscribirLog(ex);
         return(false);
     }
 }
Beispiel #6
0
        protected override void SetPrimaryKey(DomainObject obj, long id)
        {
            EEDUCACIONSENCE objRoot = obj as EEDUCACIONSENCE;

            objRoot.CODEDUCACION = id;
        }