Click here to Skip to main content
15,893,668 members
Home / Discussions / C#
   

C#

 
QuestionRe: Nullable foreign key causes runtime error in OData service Pin
Richard MacCutchan29-Aug-23 6:21
mveRichard MacCutchan29-Aug-23 6:21 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Alex Wright 202229-Aug-23 6:47
Alex Wright 202229-Aug-23 6:47 
GeneralRe: Nullable foreign key causes runtime error in OData service Pin
Dave Kreskowiak29-Aug-23 11:52
mveDave Kreskowiak29-Aug-23 11:52 
GeneralRe: Nullable foreign key causes runtime error in OData service Pin
Richard MacCutchan29-Aug-23 21:18
mveRichard MacCutchan29-Aug-23 21:18 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Richard Deeming29-Aug-23 21:14
mveRichard Deeming29-Aug-23 21:14 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Gerry Schmitz30-Aug-23 10:25
mveGerry Schmitz30-Aug-23 10:25 
AnswerRe: Nullable foreign key causes runtime error in OData service Pin
Mycroft Holmes30-Aug-23 12:44
professionalMycroft Holmes30-Aug-23 12:44 
QuestionCom port c#, windows form Pin
Jan 194728-Aug-23 1:16
Jan 194728-Aug-23 1:16 
AnswerRe: Com port c#, windows form Pin
Richard MacCutchan28-Aug-23 4:44
mveRichard MacCutchan28-Aug-23 4:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 11:21
Jan 194728-Aug-23 11:21 
AnswerRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 6:44
mveGerry Schmitz28-Aug-23 6:44 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 11:12
Jan 194728-Aug-23 11:12 
GeneralRe: Com port c#, windows form Pin
Gerry Schmitz28-Aug-23 14:43
mveGerry Schmitz28-Aug-23 14:43 
GeneralRe: Com port c#, windows form Pin
Jan 194728-Aug-23 16:13
Jan 194728-Aug-23 16:13 
Questionlimiting recursion as two interdependent values change c# Pin
BillWoodruff27-Aug-23 1:15
professionalBillWoodruff27-Aug-23 1:15 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot27-Aug-23 13:14
harold aptroot27-Aug-23 13:14 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 3:41
professionalBillWoodruff28-Aug-23 3:41 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 4:55
harold aptroot28-Aug-23 4:55 
GeneralRe: limiting recursion as two interdependent values change c# Pin
Gerry Schmitz28-Aug-23 6:50
mveGerry Schmitz28-Aug-23 6:50 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 11:08
professionalBillWoodruff28-Aug-23 11:08 
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 11:13
professionalBillWoodruff28-Aug-23 11:13 
GeneralRe: limiting recursion as two interdependent values change c# Pin
harold aptroot28-Aug-23 12:36
harold aptroot28-Aug-23 12:36 
Your data structure is really a sparse matrix, right? It's a bit hidden behind the domain-specific terminology, but in the end it's a weighted graph represented as a sparse matrix. There's nothing wrong with that, it's a standard way to manipulate weighted (and even unweighted) graphs in both programming and mathematics.
BillWoodruff wrote:
How can you have "reciprocity" and "invariant."
Well I mean, there is some invariant on this matrix that you are maintaining, right? And it has something to do with the reciprocal edge (you called it that, I'm just going with it). If a weight somewhere is changed, then its "mirror image" (the reverse edge) needs to change in some way to restore that invariant. I didn't really get how it needs to be changed specifically (or what the invariant is that is being maintained by that change), but I suppose that's largely an implementation detail that doesn't need to affect the overall architecture.

So essentially my suggestion is: make the overall matrix responsible for maintaining that invariant, not the edges. And so, the edges would not try to "fix themselves" in response to an event, you would tell the matrix to change an edge weight and it would directly do so in a way that maintains the invariant (by changing the weight of an edge and the corresponding reverse edge), with no events involved (of course you can still raise them, but that wouldn't be the mechanism for maintaining the invariant).
GeneralRe: limiting recursion as two interdependent values change c# Pin
BillWoodruff28-Aug-23 22:48
professionalBillWoodruff28-Aug-23 22:48 
QuestionC# error when I try to run Pin
Member 1607362720-Aug-23 18:22
Member 1607362720-Aug-23 18:22 
AnswerRe: C# error when I try to run Pin
OriginalGriff20-Aug-23 18:27
mveOriginalGriff20-Aug-23 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.