/// <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)); }
internal SystemLogWrapper(SystemLogEntity entityObj) { entity = entityObj; }
internal static SystemLogWrapper ConvertEntityToWrapper(SystemLogEntity entity) { if (entity == null) return null; if (entity.LogID == 0) return null; return new SystemLogWrapper(entity); }