Code Monkey home page Code Monkey logo

simple.data.postgresql's People

Contributors

chris-hogan-logikos avatar chrismh avatar maniserowicz avatar pako1337 avatar yartat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple.data.postgresql's Issues

Get() call with eager loading not working

Hi,
If you will try to do something like

Element element = db.Elements
    .WithContents()
    .Get(ElementId);

you will end up with slightly incorrect query:

select 
"public"."Elements"."ElementId",
"public"."Contents"."ContentId" AS "__withn__Contents__ContentId",
"public"."Contents"."ElementId" AS "__withn__Contents__ElementId",
from "public"."Elements"
LEFT JOIN "public"."Contents"
ON ("public"."Elements"."ElementId" = "public"."Contents"."ElementId")
WHERE "public"."Elements"."ElementId" = ((1))
LIMIT 1 OFFSET 0

Notice LIMIT 1 OFFSET 0 part at the end - only one row will get returned, while I would expect to get all related rows. I.e. eager loading when using Get() (and probably when using First, FirstOrDefault, Single and SingleOrDefault) is broken.

Error trying to load PgProcedureExecutor on Mono 3.8

When trying to load a simple Nancy server, I get this error.

System.TypeLoadException
Could not load type 'Simple.Data.PostgreSql.PgProcedureExecutor' from assembly 'Simple.Data.PostgreSql, Version=0.17.0.0, Culture=neutral, PublicKeyToken=null'.

Description: HTTP 500.Error processing request.
Details: Non-web exception. Exception origin (name of application or object): mscorlib.
Exception stack trace:
  at (wrapper managed-to-native) System.MonoType:GetPropertiesByName (System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
  at System.MonoType.GetProperties (BindingFlags bindingAttr) [0x00000] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/MonoType.cs:318 
  at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo+<GetExportMembers>c__Iterator0.MoveNext () [0x00110] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/AttributedModel/AttributedPartCreationInfo.cs:358 
  at System.Linq.Enumerable.Any[MemberInfo] (IEnumerable`1 source) [0x00024] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.Core/System.Linq/Enumerable.cs:138 
  at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.HasExports () [0x00000] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/AttributedModel/AttributedPartCreationInfo.cs:113 
  at System.ComponentModel.Composition.AttributedModel.AttributedPartCreationInfo.IsPartDiscoverable () [0x0001d] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/AttributedModel/AttributedPartCreationInfo.cs:94 
  at System.ComponentModel.Composition.AttributedModel.AttributedModelDiscovery.CreatePartDefinitionIfDiscoverable (System.Type type, ICompositionElement origin) [0x0000a] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/AttributedModel/AttributedModelDiscovery.cs:20 
  at System.ComponentModel.Composition.Hosting.TypeCatalog.get_PartsInternal () [0x00052] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/Hosting/TypeCatalog.cs:276 
  at System.ComponentModel.Composition.Hosting.TypeCatalog.CreateIndex () [0x0000b] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/System.ComponentModel.Composition.4.5/src/ComponentModel/System/ComponentModel/Composition/Hosting/TypeCatalog.cs:328 
  at System.Lazy`1[System.Collections.Generic.IDictionary`2[System.String,System.Collections.Generic.List`1[System.ComponentModel.Composition.Primitives.ComposablePartDefinition]]].InitValue () [0x0015f] in /Volumes/build-root-ramdisk/mono-3.8.0/mcs/class/corlib/System/Lazy.cs:164 
Version Information: 3.8.0 ((no/db71bc1 Fri Sep 12 13:10:47 EDT 2014); ASP.NET Version: 4.0.30319.17020

Update to latest Simple.Data release

Chris, I was wondering if you are still actively maintaining this project and had plans to support the latest releases of Simple.Data?
I started using PosgreSQL more frequently and really appreciate the effort being put into this project.

Best Regards,
Diego.

Still active?

Hi there,

Is this still being maintained? I am looking into this for Postgres with jsonb column type. Is this supported?

ExecuteReader is not implemented

I have a simple database with a "User" table.

When I run this:
Database.Open().User.FindByName("Chris")

I get an exception with the following explanation:
"Method 'ExecuteReader' in type 'Simple.Data.PostgreSql.PgProcedureExecutor' from assembly 'Simple.Data.PostgreSql, Version=0.16.2.2, Culture=neutral, PublicKeyToken=null' does not have an implementation.":"Simple.Data.PostgreSql.PgProcedureExecutor"

Upon inspection of the PgProcedureExecutor.cs class, I see that indeed, ExecuteReader is not implemented. It seems to be used after all.

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.