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
|
|
|
|
It seems my post did not make it though. So here is my question. I have the following code: public partial interface IUnitOfWork { IPerson Person { get; set; } } public partial class UnitOfWork : IUnitOfWork { public IPerson Person{get;set;} } When I add this to my code then all the other UnitOfWork functions become unavailable and I get compilation errors. How do I extend my UnitOfWork Thanks Susan |
|
|
partial is a compile-time thing, so your declaration of partial interface IUnitOfWork does not extend Mindscape.LightSpeed.IUnitOfWork: it creates a new interface in *your* namespace (e.g. MyCompany.MyProject.IUnitOfWork). When you write IUnitOfWork in your code, the C# compiler is finding your new interface, not the LightSpeed interface. Same for your UnitOfWork class. You should instead create interfaces and classes which extend the LightSpeed interface and class: public IMyModelUnitOfWork : IUnitOfWork { ... } |
|