You know how in Entity Framework you can use the Attribute to do: [Column("...")]. How could I build something similar, or are they just using the Linq ColumnAttribute?
I'm actually okay with that solution @mikeTheLiar because then I Won't have to use my Override on SaveChanges()... Thank you for the confirmation, gonna have to dust off some old SQL parts of my brain.
@Greg yes, but in what context? what are you using to access the data?
the EF model builder scans the metadata for the entity classes specifically looking for those attributes; just throwing random attributes in your code won't do anything if nothing is looking for them to be there.
if that's the case, just fix it in your query. SELECT Custom1 AS [StoreLocationId]...
user47589
@greg you can build your own version of ColumnAttribute, but you'll need to also make a corresponding EF convention to make EF do stuff with the attribute
i just downloaded and installed the latest version of an SDK from a super major big corporation, that was just released in the past ~2 years.. and it won't build because it can't find the VS2003 MSBuild targets
but generally code camps are looked down upon by companies with high standards
we like to see either a college degree or experience building systems or both. All a code camp tells me is that you were smart enough to pass a program you paid a lot of money for (they don't fail a lot of people out of those programs)
ok the gist of it is that they supply a visa if you can gain a 6month - year trainee ship. It's not a code camp afik
it's for entry level professional with 1yr + exp
Would you recommend applying for an internship and getting them to sort the visa? I'm not sure what the chances are of a US company hiring me with only a years experience though.
Hello, what is the general consensus on custom exceptions? Create one or just throw one of the existing ones with a custom message? I've never made a custom exception before, so not familiar with the pros and cons
I'm leaning towards just having a message and using one of the existing exceptions, but saw someone say that a custom exception shows the intent more
Basically reading data from sensors in a system, the system supports many different manufacturers of sensors, but the thing I'm working on is only meant to be able to read from a specific manufacturer (long story) so if my code gets called to read a sensor that is not one of the supported ones I have to throw an exception
I guess NotSupported fits that now ive typed it out haha