title: How do you add the equivalent of the OwnedAttribute using FluentAPI?
body: <p>I can't seem to do this without using either the attribute on TrackState or specifying OwnsOne for Publishers + Articles. Is there any way i can globally mark TrackState as an owned type without using the attribute?</p>
  
  <p>(for people comming through google: How do you add attributes to entities using fluent api?)</p>
  
  <p>(Entities + EF core are in seperate libraries and i do not want a dependency there on EF)</p>
  
  <pre><code>public class Publisher
  {
      public int Id { get; set; }
  
      public string Name { get; set; }
  
      public virtual ICollection&lt;Article&gt; Articles { get; set; } = new List&lt;Article&gt;();
  
      public TrackState State { get; set; }
  }
  
  public class TrackState
  {
      public DateTime? Created { get; set; }
  
      public DateTime? Modified { get; set; }
  }
  
  public class Article
  {
      public int Id { get; set; }
  
      public int PublisherId { get; set; }
  
      public string Content { get; set; }
  
      public TrackState State { get; set; }
  }
  
  
  public class CustomContext : DbContext
  {
      public CustomContext()
      {
      }
  
      public CustomContext(DbContextOptions options) : base(options)
      {
      }
  
      public DbSet&lt;Publisher&gt; Publishers { get; set; }
  
      public DbSet&lt;Article&gt; Articles { get; set; }
  
      protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
      {
          optionsBuilder.UseSqlServer("Server=(localdb)\\mssqllocaldb;Database=BananaDb;Trusted_Connection=True;");
          //          base.OnConfiguring(optionsBuilder);
      }
  
      protected override void OnModelCreating(ModelBuilder modelBuilder)
      {
          // one of the attempts i would have expected to work.
          modelBuilder.Entity&lt;TrackState&gt;().HasAnnotation("Owned", true);
          base.OnModelCreating(modelBuilder);
      }
  }
  </code></pre>