Hi Walaa,
This isn't really a llbl question, more like a basic C# language query. But if you like i have this interface member of IActivity:
IProject ProjectUsingProjectId { get; set; }
and the on my ActivityEntity class (generated by LLBL) I have added IActivity to it's inheritence.
public virtual ProjectEntity ProjectUsingProjectId
{
//stuff
}
This results in:
D:\Projects\Shivam Client Portal\Main\Source\SCP v1.0\Shivam.SCP.DAL\EntityClasses\ActivityEntity.cs(35,23): error CS0738: 'Shivam.SCP.DAL.EntityClasses.ActivityEntity' does not implement interface member 'Shivam.SCP.DAL.IActivity.ProjectUsingProjectId'. 'Shivam.SCP.DAL.EntityClasses.ActivityEntity.ProjectUsingProjectId' cannot implement 'Shivam.SCP.DAL.IActivity.ProjectUsingProjectId' because it does not have the matching return type of 'Shivam.SCP.DAL.IProject'.
I was kind of hoping that seeing as ProjectEntity implements IProject I wouldn't have to implement the ProjectUsingProjectId interface member as "IProject". It seemed reasonable to me. I mean ProjectEntity can be implicity cast to IProject so... wtf..
Regarding my other query with UserCodeRegions I was doing something stupid. I for some reason wrote that one bit of the template expecting <[UserCodeRegion EntityFieldName "($VALUE)Attributes"]> to output the region name instead of having a seperate <[UserCodeRegionName]>. I didn't copy+paste properly or something.