Click here to Skip to main content
15,899,679 members

Comments by Member 11380736 (Top 12 by date)

Member 11380736 8-Sep-19 15:37pm View    
It works perfect when the generic Entity type is hardcoded like here "MediaPerformerJunctionDataModel". But I would like it to be dynamic <t> or <t1,t2>

modelBuilder.Entity<mediaperformerjunctiondatamodel>().HasKey(pk => new { pk.CompositeKeyA, pk.CompositeKeyB });
modelBuilder.Entity<mediaperformerjunctiondatamodel>().HasOne(a => a.DataModelRelationA).WithMany(a => a.NavigationCollection).OnDelete(DeleteBehavior.Cascade).HasForeignKey(m => m.CompositeKeyA);
modelBuilder.Entity<mediaperformerjunctiondatamodel>().HasOne(mp => mp.DataModelRelationB).WithMany(p => p.NavigationCollection).OnDelete(DeleteBehavior.Cascade).HasForeignKey(p => p.CompositeKeyB);
Member 11380736 26-Aug-19 8:50am View    
I need to use a custom list
Member 11380736 25-Dec-15 15:53pm View    
index[0],index[2],index[1],index[3] == next to each other.
index[0],index[2],index[1],index[4] == ' NOT'next to each other.
Member 11380736 17-Dec-15 16:23pm View    
The ArrayList is all numbers like "1111100000000", "0111110000000".
And I want them to look like this:

int[,] a = { { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 } };


The reason I want to convert them is that I don't know how to create multi-array if conditions with an ArrayList like:

if(a[i,j] >= b[i,j])
{
do something...
}
Member 11380736 25-Nov-15 11:40am View    
I have a function that returns the ranking of the hand. But it finds it inside the array I'm trying to create, by searching inside the array.
Do you have any idea how to loop through all possible full house combinations like As,Ad,Ac,Ks,Kc etc.