title: EF Code-First One-to-one relationship using FluentAPI
body: <p>I have two FluentAPI Class.I used EF Code First approach. One is ClientAdmin and another is school.I want to make Id of ClientAdmin to be primary key of school table  </p>
  
  <p>my ClientAdmin FluentAPI class looks like this</p>
  
  <pre><code>public ClientAdminMap()
          {
              this.ToTable("ClientAdmin");
              this.HasKey(v =&gt; v.Id);
  
              this.Property(v =&gt; v.Name).IsRequired().HasMaxLength(400);
              this.Property(v =&gt; v.Email).HasMaxLength(400);
              this.Property(v =&gt; v.MetaKeywords).HasMaxLength(400);
              this.Property(v =&gt; v.MetaTitle).HasMaxLength(400);
              this.Property(v =&gt; v.PageSizeOptions).HasMaxLength(200);
          }
  </code></pre>
  
  <p>and another class is as follow</p>
  
  <pre><code>public SchoolMapper()
          {
              this.ToTable("School");
              this.HasKey(bp =&gt; bp.Id);
              this.Property(bp =&gt; bp.Title).IsRequired();
  
              this.HasRequired(bp =&gt; bp.Language)
                  .WithMany()
                  .HasForeignKey(bp =&gt; bp.LanguageId).WillCascadeOnDelete(true);
          }
  </code></pre>
  
  <p>how can i achieve this?Please help.</p>