We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class Category { public Category() { }
public Guid Id { get; set; } [ValueObj] public virtual Handler Create { get; set; }
}
public class Handler { public DateTime Time { get; set; }
public string UserId { get; set; }
public void Configure(EntityTypeBuilder builder) { builder.Property(c => c.Id); builder.OwnsOne(p => p.Create,p =>{ p.Property(e => e.UserId).HasComment("创建人");p.Property(e => e.Time).HasComment("创建时间");}); builder.ToTable("Categories"); }
// 需求支持以下这种方式分片 public override void Configure(EntityMetadataTableBuilder builder) { builder.ShardingProperty(o => o.Create.Time); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
public class Category
{
public Category() { }
}
public class Handler
{
public DateTime Time { get; set; }
}
public void Configure(EntityTypeBuilder builder)
{
builder.Property(c => c.Id);
builder.OwnsOne(p => p.Create,p =>{ p.Property(e => e.UserId).HasComment("创建人");p.Property(e => e.Time).HasComment("创建时间");});
builder.ToTable("Categories");
}
// 需求支持以下这种方式分片
public override void Configure(EntityMetadataTableBuilder builder)
{
builder.ShardingProperty(o => o.Create.Time);
}
The text was updated successfully, but these errors were encountered: