예제 #1
0
        public override void Create(BaseEntity entity)
        {
            var empresa      = (Empresa)entity;
            var sqlOperation = mapper.GetCreateStatement(empresa);

            dao.ExecuteProcedure(sqlOperation);
        }
예제 #2
0
 public override bool Create(EntidadBase entidad)
 {
     try
     {
         SqlDao.ExecuteProcedure(_mapper.GetCreateStatement(entidad));
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }