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))); }
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))); }
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); }
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)); } })); }
public override int GetHashCode() { return(HashCoder <MethodParameter> .Combine(HashCoder <Type> .GetCode(this.Type) , HashCoder <bool> .GetCode(this.IsGeneric))); }