Adding New Table #707
narayanant
started this conversation in
General
Replies: 2 comments 4 replies
-
Did you run the ef migrations command? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hi everyone, I am new in this FSH, I've succeed install and running both API and Blazor using my existing MSSQL database. I have many tables in there, please someone let me know how to include my existing tables to the project. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for sharing excellent Repositories. I am new to this. Someone, please help me with how to add a new Model (Table) in this code.
I tried but had no luck. My new model "Mytable" was not created in DB. I am missing something.
My Code
namespace FSH.WebApi.Domain.Catalog;
public class Mytable : AuditableEntity, IAggregateRoot
{
public string Name { get; private set; }
public string? Description { get; private set; }
}
public class ApplicationDbContext : BaseDbContext
{
public ApplicationDbContext(ITenantInfo currentTenant, DbContextOptions options, ICurrentUser currentUser, ISerializerService serializer, IOptions dbSettings, IEventPublisher events)
: base(currentTenant, options, currentUser, serializer, dbSettings, events)
{
}
}
Beta Was this translation helpful? Give feedback.
All reactions