Skip to content

Instantly share code, notes, and snippets.

@Beelzenef
Last active August 24, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beelzenef/477ed8539731f62ac3655b584eb20d03 to your computer and use it in GitHub Desktop.
Save Beelzenef/477ed8539731f62ac3655b584eb20d03 to your computer and use it in GitHub Desktop.
Modificación de entidad Post, creando relación con entidad Author, para medium.com/puntotech
namespace PuntoTechApp
{
public class Post : BaseEntity
{
public string Title { get; set; }
public string Url { get; set; }
public int Words { get; set; }
// Modificación: conexión con Author
public int AuthorId { get; set; }
public Author Author { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment