INNER CODE UNIT · C#
Specialty
BlueshiftSoftware/EntityFrameworkCore · src/Blueshift.EntityFrameworkCore.MongoDB.SampleDomain/ZooDbContext.cs:131
public class Specialty
{
public string AnimalType { get; set; }
public ZooTask Task { get; set; }
}
public class Enclosure
{
// When using attribute-driven data modeling, either [BsonId] or [Key]
// is required for the primary key field; either will work with the
// MongoDb C# driver EFCore adapter
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public ObjectId EnclosureId { get; [UsedImplicitly] private set; }
public string Name { get; set; }
public string AnimalEnclosureType { get; set; }