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
|
Hello, I have created a Model with a name of Test with multiple data objects/classes, and Lightspeed has automatically created the TestUnitOfWork for my objects as strong-typed unit of work. The problem is I cannot every create a context using that Strong Type anywhere, it gives me the Error: "Mindscape.Lightspeed.LightspeedContext I cannot use the strong-typed TestUnitOfWork anywhere. I have a static weak context that I can use everywhere, but I really need and want to use the strong type one, and take advantage of the advanced querying of the objects. I have looked at the examples, and I am not able to use it. Is the Strong Type UnitOfWork only available in a limited scope? Any help would be extremely appreciated. Thank you. |
|
|
Are you able to post some code highlighting this? We generate the strongly typed UnitOfWork as a convenience but the expectation is that you would probably be using this in preference to the base UnitOfWork since it has the LINQ properties exposed. Other than that there isnt any difference in terms of usage. e.g. Standard usage is:
|
|