I want to have a field in my entity where the returned data comes from a class function in mydomainservice and not from the database.
The reason is that I want to generate an image URL (Silverlight bind) based rather loosely upon other fields in a table
How can I obtain that ?
The other two have mentioned a partial class. They are correct. Here’s an example…
This would assume that you already have columns named “Host”, “Folder”, and “Filename” in your database, and those have already been mapped to the appropriate columns.
L2S generates partial classes for all of its implementations. You shouldn’t be doing your own mapping. These partial classes allow you to create a new file (with ClassName.cs) that will allow you to extend the functionality of your domain objects.