/// <summary> /// Returns the hash code for this instance. /// </summary> public override int GetHashCode() => HashCode.Combine(X.GetHashCode(), Y.GetHashCode(), Z.GetHashCode());
public override int GetHashCode() { return(HashCode.Combine(Host)); }
public override int GetHashCode() { return(HashCode.Combine(One, Two, Three)); }
public override int GetHashCode() { return(HashCode.Combine(UnderlyingVector[0], UnderlyingVector[1])); }
public override int GetHashCode() { return(HashCode.Combine(Id, Uuid, BookingId, BookingUuid, VehicleId, VehicleUuid)); }
/// <inheritdoc /> public override int GetHashCode() { return(HashCode.Combine(Left, Top, Right, Bottom)); }
public override int GetHashCode() { return(HashCode.Combine(Include, Exclude)); }
/// <summary>Serves as the default hash function.</summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { return(HashCode.Combine(Id, Date, ListStrong)); }
public override int GetHashCode() { return(HashCode.Combine(Code, Name)); }
public override int GetHashCode() { return(HashCode.Combine(Amount, Currency)); }
public override int GetHashCode() { return(HashCode.Combine(value)); }
public override int GetHashCode() { return(HashCode.Combine(ProductID, Quantity, CurrentPrice, LastPrice)); }
public override int GetHashCode() { return(HashCode.Combine(CartID)); }
public override int GetHashCode() => HashCode.Combine(ValueInBaseUnit);
public override int GetHashCode() => HashCode.Combine(Property, EntityType);
public override int GetHashCode() { return(HashCode.Combine(CommandId, ChannelId, Status, BitrateType)); }
public override int GetHashCode() { return(HashCode.Combine(Chapter, Stats)); }
public override int GetHashCode() => HashCode.Combine(this.X, this.Y);
/// <summary> /// Gets the hash code for the key. /// </summary> /// <returns> /// The hash code for the key. /// </returns> public override int GetHashCode() => HashCode.Combine( _compiledQueryCacheKey, _useRelationalNulls, _querySplittingBehavior, _shouldBuffer);
public override int GetHashCode() { return(HashCode.Combine(_raw, Original, Flipped)); }
public override int GetHashCode() => HashCode.Combine(Version, Policies, Position.BoardsHistory, Position.MiscInfo);
public static void ConfigureMGSurveyDbContext(this ModelBuilder modelBuilder, MGSurveyStoreOptions storeOptions) { if (!string.IsNullOrWhiteSpace(storeOptions.DefaultSchema)) { modelBuilder.HasDefaultSchema(storeOptions.DefaultSchema); } var valueComparer = new ValueComparer <IDictionary <string, object> >( (c1, c2) => c1.SequenceEqual(c2), c => c.Aggregate(0, (a, v) => HashCode.Combine(a, v.GetHashCode()))); modelBuilder.Entity <Form>(entity => { entity.ToTable <Form>(storeOptions.Forms); entity.HasKey(x => x.Id); entity.Property(x => x.Id).HasMaxLength(36).HasColumnType("varchar(36)").IsRequired(); entity.Property(x => x.Name).HasMaxLength(250).HasColumnType("varchar(250)").IsRequired(); entity.Property(x => x.Type).HasMaxLength(25).HasColumnType("varchar(25)").IsRequired(); entity.Property(x => x.CreatedBy).HasMaxLength(256).HasColumnType("varchar(256)").IsRequired(); entity.Property(x => x.CreatedDate).IsRequired(); entity.Property(x => x.UpdatedBy).HasMaxLength(256).HasColumnType("varchar(256)"); // apparently anything over 4K converts to nvarchar(max) on SqlServer entity.Property(x => x.EntityData).HasMaxLength(50000).IsRequired(); entity.HasOne <ValidationSchema>(x => x.ValidationSchema).WithOne(x => x.Form).HasForeignKey <ValidationSchema>(x => x.FormId); entity.HasMany <SurveyResponse>(e => e.SurveyResponses).WithOne(e => e.Form).HasForeignKey(e => e.FormId).IsRequired(); entity.Property(x => x.EntityData) .HasConversion( (v) => JsonConvert.SerializeObject(v, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, TypeNameHandling = TypeNameHandling.None }), v => JsonConvert.DeserializeObject <Dictionary <string, object> >(v, new JsonConverter[] { new MGSurveyJsonConverter() })) .Metadata.SetValueComparer(valueComparer); }); modelBuilder.Entity <ValidationSchema>(entity => { entity.ToTable <ValidationSchema>(storeOptions.ValidationSchemas); entity.HasKey(x => x.Id); entity.Property(x => x.Id).HasMaxLength(36).HasColumnType("varchar(36)").IsRequired(); entity.Property(x => x.FormId).HasMaxLength(36).HasColumnType("varchar(36)"); entity.Property(x => x.CreatedBy).HasMaxLength(256).HasColumnType("varchar(256)").IsRequired(); entity.Property(x => x.CreatedDate).IsRequired(); entity.Property(x => x.UpdatedBy).HasMaxLength(256).HasColumnType("varchar(256)"); // apparently anything over 4K converts to nvarchar(max) on SqlServer entity.Property(x => x.EntityData).HasMaxLength(50000).IsRequired(); entity.Property(x => x.EntityData) .HasConversion( (v) => JsonConvert.SerializeObject(v, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, TypeNameHandling = TypeNameHandling.None }), v => JsonConvert.DeserializeObject <Dictionary <string, object> >(v, new JsonConverter[] { new MGSurveyJsonConverter() })) .Metadata.SetValueComparer(valueComparer); }); modelBuilder.Entity <SurveyResponse>(entity => { entity.ToTable <SurveyResponse>(storeOptions.SurveyResponses); entity.HasKey(x => x.Id); entity.Property(x => x.Id).HasMaxLength(36).HasColumnType("varchar(36)").IsRequired(); entity.Property(x => x.FormId).HasMaxLength(36).HasColumnType("varchar(36)").IsRequired(); entity.Property(x => x.CreatedBy).HasMaxLength(256).HasColumnType("varchar(256)").IsRequired(); entity.Property(x => x.CreatedDate).IsRequired(); entity.Property(x => x.UpdatedBy).HasMaxLength(256).HasColumnType("varchar(256)"); // apparently anything over 4K converts to nvarchar(max) on SqlServer entity.Property(x => x.EntityData).HasMaxLength(50000).IsRequired(); entity.Property(x => x.EntityData) .HasConversion( (v) => JsonConvert.SerializeObject(v, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore, TypeNameHandling = TypeNameHandling.None }), v => JsonConvert.DeserializeObject <Dictionary <string, object> >(v, new JsonConverter[] { new MGSurveyJsonConverter() })) .Metadata.SetValueComparer(valueComparer); }); modelBuilder.Entity <FormType>(entity => { entity.ToTable <FormType>(storeOptions.FormTypes); entity.HasKey(x => x.Id); entity.Property(x => x.Id).HasMaxLength(36).HasColumnType("varchar(36)").IsRequired(); entity.Property(x => x.Name).HasMaxLength(255).HasColumnType("varchar(255)").IsRequired(); entity.Property(x => x.SecretKey).HasMaxLength(255).HasColumnType("varchar(255)").IsRequired(); }); }
public override int GetHashCode() => HashCode.Combine(Type, IsEnabled);
public override int GetHashCode() { return(HashCode.Combine(base.GetHashCode())); }
public override int GetHashCode() => SourceAddress != null?HashCode.Combine(base.GetHashCode(), SourceAddress) : base.GetHashCode();
/// <inheritdoc/> public override int GetHashCode() => HashCode.Combine(Type, Key);
public override int GetHashCode() { return(HashCode.Combine(this.s, this.lang)); }
/// <inheritdoc /> public override int GetHashCode() => HashCode.Combine(Red, Green, Blue, Alpha);
public override int GetHashCode() { return(HashCode.Combine(Id, Nome)); }
public override int GetHashCode() => HashCode.Combine(XMin, YMin, XMax, YMax);