Hello,
I use a homemade set of codesmith templates right now that use an implementation of the CSLA framework.
I was hoping to demonstrate base class inheritance functionality in LLBLGen, but I am not sure how to do it.
I'd searched for an answer, but did not find what I was looking for.
Scenario:
Given the base class of (pseudo code):
public class BaseValueClass
// properties
int Id
DateTime DateCreated
int InsertedBy
DateTime DateUpdated
int UpdatedBy
DateTime ConcurrencyDate
snip <<
These 6 fields are in each value object.
Our current system has these 6 fields in each table, with the Id field named differently for each table (Customer table id = CustomerId, Orders table id = OrderId)
We gen our DALs and we pass in info unique to each object that lets it know that CustomerId = the Id property of the base class.
Question(s):
In LLBLGen, do I need to make a base class table and inherit from it? Can I still use an implementation of LLBLGen inheritance if my Id fields are unique to each table (CustomerId, OrderId)?
Do I need to even worry about deriving these common fields from a base class if I am using LLBLGen?
I had demoed LLBLGen 2.5 (2.6?) a few years ago and was able to show colleagues how similar it was our framework for runtime coding, and I'd like to re-visit LLBLGen again, but I am stuck on this aspect and functionality when comparing it to our (now unsupported internally) code generation setup.
Thanks!
**