/// <summary>
        /// local implementation of Equals based on unique value members
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }

            SystemLogEntity castObj = (SystemLogEntity)obj;

            return((castObj != null) && (this._logID == castObj.LogID));
        }
Пример #2
0
 internal SystemLogWrapper(SystemLogEntity entityObj)
 {
     entity = entityObj;
 }
Пример #3
0
        internal static SystemLogWrapper ConvertEntityToWrapper(SystemLogEntity entity)
        {
            if (entity == null)
                return null;
				
            if (entity.LogID == 0)
                return null;

            return new SystemLogWrapper(entity);
        }