Пример #1
0
 protected bool Equals(QnSProjectAward.Contracts.Modules.Base.ISetting other)
 {
     if (other == null)
     {
         return(false);
     }
     return(IsEqualsWith(AppName, other.AppName) && IsEqualsWith(Key, other.Key) && IsEqualsWith(Value, other.Value));
 }
Пример #2
0
        public static Modules.Base.Setting Create(QnSProjectAward.Contracts.Modules.Base.ISetting other)
        {
            BeforeCreate(other);
            var result = new Modules.Base.Setting();

            result.CopyProperties(other);
            AfterCreate(result, other);
            return(result);
        }
Пример #3
0
        public void CopyProperties(QnSProjectAward.Contracts.Modules.Base.ISetting other)
        {
            if (other == null)
            {
                throw new System.ArgumentNullException(nameof(other));
            }
            bool handled = false;

            BeforeCopyProperties(other, ref handled);
            if (handled == false)
            {
                Id      = other.Id;
                AppName = other.AppName;
                Key     = other.Key;
                Value   = other.Value;
            }
            AfterCopyProperties(other);
        }
Пример #4
0
 static partial void AfterCreate(Modules.Base.Setting instance, QnSProjectAward.Contracts.Modules.Base.ISetting other);
Пример #5
0
 static partial void BeforeCreate(QnSProjectAward.Contracts.Modules.Base.ISetting other);
Пример #6
0
 partial void AfterCopyProperties(QnSProjectAward.Contracts.Modules.Base.ISetting other);
Пример #7
0
 partial void BeforeCopyProperties(QnSProjectAward.Contracts.Modules.Base.ISetting other, ref bool handled);