« first day  last day (15 days later) » 

3:54 PM
looks like it's caching your user
could try logging out & back in to stack overflow?
it shows a lower rep amount on you until I actually go to your page
may just have to wait until the cache updates
 
 
2 hours later…
5:26 PM
you have rep now!
 
 
2 hours later…
7:49 PM
hallo?
 
hola
 
sorry... I had to go to the bathroom for a minute... which at my work, if you don't have a clearance you have to find a babysitter to watch you and make sure you don't run away...
it's not fun
 
you're quite the salesman
 
hahah that's one of the very few downsides... I have a boss that understands IT and IS, understands I'm not a sys admin, and will stand behind me no matter what and tell end users no
it's like working for a unicorn
 
7:57 PM
so, when you go to save that Asset, are you defining the relationship on both ends, or just one?
 
I was under the impression (also I didn't build the data layer)... that the map on the context was defining the relationship on both sides via the joining table... but there is a definition for the other model on each of them
 
Any time i've done a many to many on a code first db, I don't define the mapping on the context
just the virtual ICollections on both sides
I think it's a one or the other type thing
 
I could definitely try commenting the mapping out and see if that fixes anything
have you had to create the models for the joining tables?
 
not unless you have additional information you want to store in the joining table
like info about the relationship
if you do that, then creating and saving stuff gets more complicated
 
yah
well when I take that out it gives me an invalid object being dbo.SafetyRequirementAssets on initial load
so the mapping is necessary to making the model the way my data layer is setup
 
8:06 PM
it tells you what is an invalid object?
 
that db table
 
are you explicitly defining that table somewhere?
 
it doesn't recognize it from the model when I comment the mapping, just in the mapping
 
huh?
normally EF creates the joining table for you
without you telling it what to name it or anything
Unless you have a pending migration it wants you to create or something?
 
I'm gonna check if that's the case vNext you have to do the migrations through the command prompt so I'm gonna try that out, uno momento
 
8:22 PM
I said that a second ago about EF with vNext, that was misleading it's vNext and EF6 that don't like playing with each other... but that's something totally different. Come to find out the db wasn't created via migrations it was hand built then added to later. I'm going to create it with the migration and see if it plays nicer with itself
 

« first day  last day (15 days later) »