diff options
author | HombreLaser <sebastian-440@live.com> | 2022-09-15 20:55:44 -0500 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2022-09-15 20:55:44 -0500 |
commit | 2c9c2cc3b414115bca9b6c63ca7b20d49a8a8ec1 (patch) | |
tree | 0344372eca04eab992ece36c4e07511f6f0214c6 /Models/LibraryContext.cs | |
parent | 3381c633fcd73e5159ae4a607835167ebdbb12ee (diff) |
Agregar autor
Diffstat (limited to 'Models/LibraryContext.cs')
-rw-r--r-- | Models/LibraryContext.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Models/LibraryContext.cs b/Models/LibraryContext.cs index 114ce2c..5e31e8f 100644 --- a/Models/LibraryContext.cs +++ b/Models/LibraryContext.cs @@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore; namespace LibraryAPI.Models { public class LibraryContext : DbContext { + public DbSet<Author>? Authors { get; set; } public DbSet<Book>? Books { get; set; } public LibraryContext(DbContextOptions<LibraryContext> options) : base(options) {} //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |