title: How to set the one-to-one relationship with fluent api in this case? (EF6)
body: <p>I have this two entities:</p>
  
  <pre><code>    public partial class Ficheros
          {
              public Guid Idfichero { get; set; }
              public long Iddocumento { get; set; }
              public byte[] Fichero { get; set; }
  
              public virtual Documentos IddocumentoNavigation { get; set; }
          }
  
  public partial class Documentos
      {
          public Documentos()
          {
              ElementosDocumentos = new HashSet&lt;ElementosDocumentos&gt;();
          }
  
          public long Iddocumento { get; set; }
          public string Nombre { get; set; }
          public long? IdtipoDocumento { get; set; }
          public string Codigo { get; set; }
          public decimal? Espacio { get; set; }
          public string Unidades { get; set; }
          public long? Bytes { get; set; }
  
          public virtual ICollection&lt;ElementosDocumentos&gt; ElementosDocumentos { get; set; }
          public virtual Ficheros Ficheros { get; set; }
          public virtual DocumentosTipos IdtipoDocumentoNavigation { get; set; }
      }
  </code></pre>
  
  <p>In the database, IDFichero is an uniqueidentifier and in Documentos the IDDocumento is a big int autoincrement. The main table is Documentos, that has one and only one fichero, and it is requiered.</p>
  
  <p>The examples that I have seen, it would make me that IDFichero was IDDocumento, but to store a file in the database I need that the ID is a uniqueidentifier.</p>
  
  <p>Thanks.</p>