示例#1
0
        public override Boolean Equals(object obj)
        {
            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }
            MType castObj = (MType)obj;

            return((castObj != null) &&
                   (this.MetaTypeID == castObj.MetaTypeID));
        }
示例#2
0
        public IList<MType> Select(MType data)
        {

                IList<MType> datos = new List<MType>();
            try { 
                datos = GetHsql(data).List<MType>();
                if (!Factory.IsTransactional)
                    Factory.Commit();

            }
            catch (Exception e)
            {
                NHibernateHelper.WriteEventLog(WriteLog.GetTechMessage(e));
            }
                return datos;
           
        }
示例#3
0
 public void DeleteMType(MType data) { Factory.DaoMType().Delete(data); }
示例#4
0
 public void UpdateMType(MType data) { Factory.DaoMType().Update(data); }
示例#5
0
 public MType SaveMType(MType data) { return Factory.DaoMType().Save(data); }
示例#6
0
 public IList<MType> GetMType(MType data) { return Factory.DaoMType().Select(data); }
示例#7
0
 public MType SelectById(MType data)
 {
     return (MType)base.SelectById(data);
 }
示例#8
0
 public Boolean Delete(MType data)
 {
     return base.Delete(data);
 }
示例#9
0
 public Boolean Update(MType data)
 {
     return base.Update(data);
 }
示例#10
0
 public MType Save(MType data)
 {
     return (MType)base.Save(data);
 }