Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshids/1e34bbd071cff86b4075 to your computer and use it in GitHub Desktop.
Save joshids/1e34bbd071cff86b4075 to your computer and use it in GitHub Desktop.
How to get "Found shared references to a collection"
var coll = new UIRColl();
var u1 = new user();
//u1.uircolllection = coll;
u1.uircolllection = new UIRColl();
u1.uircolllection .AddRange(coll);
var u2 = new user();
//u2.uircolllection = coll;
u2.uircolllection = new UIRColl();
u2.uircolllection .AddRange(coll);
session.flush();
var coll = new UIRColl();
var u1 = new user();
u1.uircolllection = coll;
var u2 = new user();
u2.uircolllection = coll;
session.flush();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment