Database Reference
In-Depth Information
session.QueryOver<AuditExt2>().List();
foreach (var audit in audits)
{
AuditExt data = new AuditExt();
data.audit = new DAL.audit();
data.audit.Headers = audit.Headers;
data.audit.Id = audit.Id;
data.audit.ReplyToAddress =
audit.ReplyToAddress;
data.audit.Recoverable =
audit.Recoverable;
data.audit.Expires = audit.Expires;
data.audit.RowVersion =
audit.RowVersion;
if (audit.Body == null)
{
data.reader = " ";
}
else
{
data.reader =
System.Text.UTF8Encoding.UTF8.GetString(audit.Body);
}
models.Add(data);
}
}
return View(models);
}
So what did we learn so far? We learned how to create objects from the NServiceBus
tables to C# using EF, how to display these objects in MVC, and how to extend them into
NHibernate so that we are not limited to just using SQL Server.
Search WWH ::




Custom Search