Giter Club home page Giter Club logo

runtimeefcore's People

Contributors

jdtcn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

runtimeefcore's Issues

PostgreSQL scaffolder error

Необработанное исключение при попытке запустить ваш демо проект под PostgreSQL

  1. Скачал ваше приложение
  2. Добавил nuget пакет Npgsql.EntityFrameworkCore.PostgreSQL
  3. Добавил код (у вас в readme проблемы с версткой, поэтому просто менял MsSQL код)
static IReverseEngineerScaffolder CreatePostgreScaffolder() =>
    new ServiceCollection()
        .AddEntityFrameworkSqlServer()
        .AddLogging()
        .AddEntityFrameworkDesignTimeServices()
        .AddSingleton<LoggingDefinitions, NpgsqlLoggingDefinitions>()
        .AddSingleton<IRelationalTypeMappingSource, NpgsqlTypeMappingSource>()
        .AddSingleton<IAnnotationCodeGenerator, AnnotationCodeGenerator>()
        .AddSingleton<IDatabaseModelFactory, NpgsqlDatabaseModelFactory>()
        .AddSingleton<IProviderConfigurationCodeGenerator, NpgsqlCodeGenerator>()
        .AddSingleton<IScaffoldingModelFactory, RelationalScaffoldingModelFactory>()
        .AddSingleton<IPluralizer, Bricelam.EntityFrameworkCore.Design.Pluralizer>()
        .AddSingleton<ProviderCodeGeneratorDependencies>()
        .AddSingleton<AnnotationCodeGeneratorDependencies>()
        .BuildServiceProvider()
        .GetRequiredService<IReverseEngineerScaffolder>();

Приложение компилируется без ошибок, но при попытке вызова
var scaffolder = CreatePostgreScaffolder();

падает исключение:
System.InvalidOperationException: Unable to resolve service for type 'Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.INpgsqlSingletonOptions' while attempting to activate 'Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlTypeMappingSource'.

Не очень понимаю что нужно сделать, демо с Microsoft SQL Server стартует корректно.

Problem when upgrading project references

Hi
I upgraded project to .Net 7 and then the references to the latest versions. after upgrading the code can not compile because of some errors and visual studio said you are missing some references. but when I downgrade the reference of microsoft.entityframeworkcore.design compile is successful but the program doesn't work correctly because of differences between versions.
Could you upgrade it to latest versions?
Thanks
Mohsen

Сначала модель

Слушай а такой вопрос !

А были задача генерировать сначала модель а потом код и скрипты миграции ?

Этот самый IDatabaseModelFactory ?

Если делать не реверс а строить сначала модель а потом выполнять миграции ?

Подходит ли IDatabaseModelFactory?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.