Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. So I just found a Google "easter egg" you REALLY don't want to find...

So I just found a Google "easter egg" you REALLY don't want to find...

Scheduled Pinned Locked Moved The Lounge
javascriptcloudcsharplinqcom
23 Posts 12 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Gary Wheeler

    Sander Rossel wrote:

    I used the same C# property for two separate navigational properties in EF. Which "sort of" works, apparently. The exception really doesn't make sense though, as do the symptoms X|

    Sounds like someone is using ReferenceEquals instead of an actual value comparison.

    Software Zen: delete this;

    Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #21

    Nah, I don't think I've ever seen ReferenceEquals in C# code, because why would you ever want to know that? The problem was more like:

    someEntity.HasMany(x => x.FirstList).WithMany(x => x.OtherList).UsingEntity<...>(...)
    someEntity.HasMany(x => x.SecondList).WithMany(x => x.OtherList).UsingEntity<...>(...)

    Changing that second line fixed the issue.

    someEntity.HasMany(x => x.SecondList).WithMany(x => x.SecondOtherList).UsingEntity<...>(...)

    Not an obvious error, compiles fine and everything.

    Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

    G 1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      Nah, I don't think I've ever seen ReferenceEquals in C# code, because why would you ever want to know that? The problem was more like:

      someEntity.HasMany(x => x.FirstList).WithMany(x => x.OtherList).UsingEntity<...>(...)
      someEntity.HasMany(x => x.SecondList).WithMany(x => x.OtherList).UsingEntity<...>(...)

      Changing that second line fixed the issue.

      someEntity.HasMany(x => x.SecondList).WithMany(x => x.SecondOtherList).UsingEntity<...>(...)

      Not an obvious error, compiles fine and everything.

      Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

      G Offline
      G Offline
      Gary Wheeler
      wrote on last edited by
      #22

      Sander Rossel wrote:

      I don't think I've ever seen ReferenceEquals in C# code, because why would you ever want to know that?

      I've used it a few times, mostly in collections and n-way tree structures to identify specific instances.

      Software Zen: delete this;

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        My someone else's code that I'm currenctly working on breaks with a NullReferenceException, except... The exception seems to have to do with lazy loading in entity framework. When I set a breakpoint and inspect some variables quickly enough they're null. After that the code stopped executing a few seconds and everything runs fine. When I don't set a breakpoint it breaks because some variable is null. When the code breaks and I inspect every variable in the block, nothing is null. Weird issue, I've never seen it before. So naturally, I google for "nullreferenceexception "FixupSkipNavigations"" (FixupSkipNavigations is where the exception occurs and I have little else to go by). Well, Google it for yourself... No results :(( I get a yeti who's ice fishing and catches a boot, an empty can, a can of sardines or a fish when you click it. THIS IS NOT HELPING X|

        Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

        M Offline
        M Offline
        MarkTJohnson
        wrote on last edited by
        #23

        My granddaughter (1 year old) got a hold of my laptop and "typed" some gibberish which happened to be on a new Chrome tab and she got the Yeti. Cute when you aren't trying to find something for work.

        I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups