Hello,
LLBLGEN Version 2.0.0.0 Final
I'm using SQL Server 2005. I just wan't to know how i can get the value of an IDENTITY column after inserting the data in the Database. I'm working with ASP.NET Webform and LLBLGenProDataSource2 for databinding. The Source code in the PerformWork Event is:
protected void _DETAILEDIT_AUFTRAG_OnPerformWork(object sender, SD.LLBLGen.Pro.ORMSupportClasses.PerformWorkEventArgs2 e)
{
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
TblVorgangEntity vorgang;
Int32 id;
foreach (UnitOfWorkElement2 uow in e.Uow.GetEntityElementsToInsert())
{
vorgang = (TblVorgangEntity)uow.Entity;
vorgang.XxxAnAm = DateTime.Now;
vorgang.XxxAnVon = (Int32)Session["UID"];
vorgang.XxxAnWs = "INTRANET 2";
vorgang.VogAbtId = 15;
}
foreach (UnitOfWorkElement2 uow in e.Uow.GetEntityElementsToUpdate())
{
vorgang = (TblVorgangEntity)uow.Entity;
vorgang.XxxGaam = DateTime.Now;
vorgang.XxxGavon = (Int32)Session["UID"];
vorgang.XxxGaws = "INTRANET 2";
}
e.Uow.Commit(adapter, true);
}
}
I'd tried to run the Reference Manual (both the installed vor VS 2005 and CHM File from your Website) but it doesn't work.
I'm looking forward for your help;-)