Hi
I am wondering if I have used a wrong setting somewhere in generating this code.
my ContactID field is an identity key in SQL Server, and meant to be assigned by the database when the insert statement is run.
However the generated code is passing the value in.
Am I doing something wrong?
I am using LLBLGen Pro v3.1 , EF4, SQLExpress2008R2
Thanks
Kirsten
/// <summary>Factory method to create a new instance of the entity type 'Crm.Contact'</summary>
/// <param name="contactIdValue">The initial value for the field 'ContactId'</param>
/// <param name="firstNameValue">The initial value for the field 'FirstName'</param>
/// <param name="lastNameValue">The initial value for the field 'LastName'</param>
public static Contact CreateContact(System.Int32 contactIdValue, System.String firstNameValue, System.String lastNameValue)
{
var toReturn = new Contact();
toReturn.ContactId = contactIdValue;
toReturn.FirstName = firstNameValue;
toReturn.LastName = lastNameValue;
return toReturn;
}