GithubHelp home page GithubHelp logo

oceania2018 / entityframeworkcore.bootkit Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 7.0 163 KB

EntityFrameworkCore Start Kit

License: MIT License

C# 100.00%
entityframework database redshift aurora postgres

entityframeworkcore.bootkit's People

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

Watchers

 avatar  avatar  avatar

entityframeworkcore.bootkit's Issues

How to Init db in web api?

How to Init db in web api? In ConfigureServices with DI or in a controller directly?Db should be reused?

How to select field of type super from redshift ?

Hello,
I try to select a field of type super from redshift and I get the following error:
Unhandled Exception is caught, args: IsTerminating[True] , System.NotSupportedException: The field 'payload' has type 'super', which is currently unknown to Npgsql. You can retrieve it as a string by marking it as unknown, please see the FAQ.

My model:

        [Table("livescore")]
        public class Livescore : IDbRecord
        {
            [Key]
            [Column("message_guid")]
            public string MessageGuid { get; set; }

            [Column("payload")]
            public string Payload { get; set; }
        }

How I try to select it:

            var db = new Database();
            AppDomain.CurrentDomain.SetData("Assemblies", new string[] { "Archive.Tester" });
            
            db.BindDbContext<IDbRecord, DbContext4Redshift>(new DatabaseBind
            {
                MasterConnection = new NpgsqlConnection("Server=host; Port=port;User ID=user;Password=pass;Database=db;Server Compatibility Mode=Redshift")
            });

            var data = db.Table<Livescore>().FirstOrDefault();

Getting the error on the last line, any idea?

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.