add fields

This commit is contained in:
yahuman committed 2023-12-23 01:11:00 +03:00
1 parent 88777aedac
commit 620fd310a9
2 files changed
+18 -1

No files matched your search

+9 -1
View File
@@ -18,6 +18,9 @@ public class PostMeetingDto
public string SpeakerName { get; set; } = null!;
public IEnumerable<IFormFile> SpeackerImage { get; set; } = null!;
public IEnumerable<IFormFile> PlaceImages { get; set; } = null!;
public string Splecializations { get; set; } = null!;
@@ -47,6 +50,8 @@ public class PutMeetingDto
public IEnumerable<IFormFile> SpeackerImage { get; set; } = null!;
public IEnumerable<IFormFile> PlaceImages { get; set; } = null!;
public string Splecializations { get; set; } = null!;
@@ -82,6 +87,9 @@ public class Meeting
public string SpeakerTelephone { get; set; } = null!;
public string PlaceImages { get; set; } = null!;
public string SpeakerEmail { get; set; } = null!;
public string Tags { get; set; } = null!;
@@ -96,7 +104,7 @@ public class ApplicationContext : IdentityDbContext<User>
public ApplicationContext(DbContextOptions<ApplicationContext> options)
: base(options)
{
Database.EnsureCreated();
Database.Migrate();
}
protected override void OnModelCreating(ModelBuilder builder)