This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have lookup tables which hold fairly static data: Flavors: Chocolate, Vanilla, Coffee - represented with integer keys 1,2,3 Most other tables using Guids for a variety of reasons. Do I need to use multiple LightSpeedContext objects, each setup with different key gen strategy in order to work with both types of keys? Also, I presume this means I cannot have a single unit of work which acts on both of these tables, correct? I like LightSpeed, but I don't like this. Please tell me what I am missing or doing wrong... I'd like to buy this product if there's a solid solution to this. Great work so far! Thanks!
|
|
|
Hi gcbrink, I've added support for specifying IdentityMethod per entity type via TableAttribute (available in tonight's build). NB. Only the core framework has been updated so far. We'll update this thread when we update the Designer. Cheers, Andrew.
|
|
|
Andrew, Thanks! I wrote a data framework which appeared to work similarly to this - essentially a reflection + attribute ORM pattern - but not nearly as nice and complete as LightSpeed. Plus, I wrote mine when I only worked on the web via ASP.Net. I've since moved to WinForms and see how useful your framework is since it supports the crucial databinding features of WinForms, which are a real pain to implement fully. Very nice, indeed! Thanks, Chris
P.S. Was in NZ in 2006 for two weeks. Beautiful country. Milford Sound, Queenstown, Nelson...
|
|
|
Hi Chris, Just to let you know, you should now (well, as of tonight's build) be able to set up per-entity-type identity methods via the designer. Please let us know if you run into any problems. And thanks for the positive feedback! |
|