Esempio n. 1
0
 public override int GetHashCode()
 {
     return(HashCoder <MethodKey> .Combine(HashCoder <Type> .GetCode(this.ObjectType)
                                           , HashCoder <Type> .GetCode(this.GenericTypes)
                                           , HashCoder <MethodParameter> .GetCode(this.Parameters)
                                           , HashCoder <bool> .GetCode(this.IsGenericVersion)));
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return(HashCoder <ClassOneCommon> .Combine(HashCoder <string> .GetCode(this.Name),
                                                HashCoder <string> .GetCode(this.Name2),
                                                HashCoder <string> .GetCode(this.Name3),
                                                HashCoder <ClassOneCommon> .GetCode(this.One)));
 }
Esempio n. 3
0
        protected override string Process(DynamicData param)
        {
            var fieldsCode = HashCoder <string> .GetCode(param.Keys); //data.Keys 是参与修改的字段名称

            string sql = _cache.GetOrCreate(fieldsCode, (t) =>
            {
                return(GetUpdateSql(this.Target, param));
            });

            return(sql);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            return(HashCoder.GetCode(ObjectType, (hashCodes) =>
            {
                var properties = DomainProperty.GetProperties(ObjectType);
                foreach (var property in properties)
                {
                    var propertyValue = this.GetValue(property);

                    hashCodes.Add(HashCoder <string> .GetCode(property.Name));
                    hashCodes.Add(HashCoder.GetCode(propertyValue));
                }
            }));
        }
Esempio n. 5
0
 public override int GetHashCode()
 {
     return(HashCoder <MethodParameter> .Combine(HashCoder <Type> .GetCode(this.Type)
                                                 , HashCoder <bool> .GetCode(this.IsGeneric)));
 }