I've heard nothing but good things about LLBLgen and I'd love to use it but I've got less than 10 days left on my free trial and I can't seem to figure out how to get this to work. I'm getting sql errors like cannot insert null value into PK field. My db looks kinda like this:
ContactInfo
InfoID PK guid
FirstName
LastName
Telephone
TelephoneID PK int
ContactInfoTelephones (lookup table)
InfoID
TelephoneID
Employee
EmployeeID PK
ContactInfoID FK
And I've setup my Entities as ContactInfo, Telephone and Employee.
The code i'm trying to use it like:
Dim emp as New EmployeeEntity()
emp.ContactInfo.FirstName = "Kas"
emp.ContactInfo.LastName = "troNYC"
emp.Save(True)
I noticed that the ContactInfo PK is a GUID so I thought maybe i'd try to add
Dim emp as New EmployeeEntity()
emp.ContactInfo.ContactInfoID = Guid.NewGuid()
emp.ContactInfo.FirstName = "Kas"
emp.ContactInfo.LastName = "troNYC"
emp.Save(True)
But that didn't work either. Is there some thing that I am missing? Error message looks like:
An exception was caught during the execution of an action query: Cannot insert the value NULL into column 'ContactInformation id', table 'Employee'; column does not allow nulls. INSERT fails.
The statement has been terminated.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
Please help me. I would even be willing to pay someone to speak to me by phone and answer some questions about how to work with this software with regards to my particular project. If any one from staff see's this, question: if I buy the software will you help me out by phone with my current problems? for a fee? Thanks!
Kas