I am trying to save a simple entity. Code looks like this:
Tbl1Entity e1 = new Tbl1Entity();
e1.Id = 3;
e1.Name = "Name 3";
e1.IsNew = true;
e1.Save();
I get
"An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll."
"Additional information: Object reference not set to an instance of an object."
As you can say I am new to LLBLGen. I have copied appSetting from LLBL generated app.config to my project app.config.
I have the following code that works just fine.. It loads the data from database..
/***************************************/
Tbl1Entity tbl1 = new Tbl1Entity(1);
ArrayList arr = tbl1.GetMemberEntityCollections();
Tbl2Collection col = tbl1.GetMultiTbl2(true);
foreach (Tbl2Entity t in col)
{
string s = t.Desc;
}
/**************************************/
I wanted to try save() method that takes two parameters IPredicate updateRestriction and recurse. Could you let me know how do I use IPredicate???
Thank you