Activities of "maliming"

hi

There is should be a IndoDbContextFactory.cs file and Microsoft.EntityFrameworkCore.Tools package in hte EntityFrameworkCore project.

/* This class is needed for EF Core console commands
 * (like Add-Migration and Update-Database commands) */
public class IndoDbContextFactory : IDesignTimeDbContextFactory<IndoDbContext>
{
    public IndoDbContext CreateDbContext(string[] args)
    {
        IndoEfCoreEntityExtensionMappings.Configure();

        var configuration = BuildConfiguration();

        var builder = new DbContextOptionsBuilder<IndoDbContext>()
            .UseSqlServer(configuration.GetConnectionString("Default"));

        return new IndoDbContext(builder.Options);
    }

    private static IConfigurationRoot BuildConfiguration()
    {
        var builder = new ConfigurationBuilder()
            .SetBasePath(Path.Combine(Directory.GetCurrentDirectory(), "../Indo.DbMigrator/"))
            .AddJsonFile("appsettings.json", optional: false);

        return builder.Build();
    }
}
<ItemGroup>
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.*">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
      <PrivateAssets>compile; contentFiles; build; buildMultitargeting; buildTransitive; analyzers; native</PrivateAssets>
    </PackageReference>
</ItemGroup>

hi

Sorry for delay, I think it will be available in 3 day.

hi

Share the steps will be simpler.

HI

Can you share the steps to reproduce the problem with a new project?

hi

When I'm trying to add a new migration using the command line dotnet ef migrations add TicketStatuses

Are you exec the dotnet ef in EF Core folder?

hi

Tiered (MVC): yes

You need to run the IdentityServer, Api.Host and Web project.

hi

  • ABP Framework version: vX.X.X
  • UI type: Angular / MVC / Blazor
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

hi

Because the audit module may be an independent service. Or use a different database or even MongoDb, We don't recommend creating foreign key relationships for them.

hi

Naming product is not currently supported. You can create a new microserivce.

https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice

hi

You can try to use ToView.

https://docs.microsoft.com/en-us/ef/core/modeling/keyless-entity-types?tabs=data-annotations https://docs.microsoft.com/en-us/ef/core/modeling/keyless-entity-types?tabs=data-annotations#mapping-to-database-objects

Showing 7281 to 7290 of 8478 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 18, 2024, 05:54