Let's say I have a very simple Entity 'Settings' with the following members:
- ID : Int32
- Name : String
- Value : String
ID is the primary key, without meaning. Name is unique.
The generated data access repository methods will be -among others- "Settings GetSettings(Int32 iD);" and "IQueryable<Settings> GetAll();". I want to add a method like "Settings GetSettings(string name);".
Is there a way to do this as a Repository Mehod on the Entity in the model? I noticed two problems:
- Sculpture complains when creating an overloaded 'GetSettings'.
- I can not find a way to specify parameters for a Repository Method.
Or is the only way to do this, to code it completely by hand in de CustomCode files?
Regards,
F