.NET

Exception handling (logging) via elmah

Posted on

When developing my applications I was looking for a global way of handling my exceptions. There are some packages you can you for handling your exceptions. First I used the Enterprise Library Exception Handling Block but today I changed from the Enterprise Library to another library called elmah. In the next few minutes I will […]

.NET

Define 2 keys in an MVC3 model object

Posted on

Last I was converting an application into MVC3. But when I came to the point where I needed to create an object that contained 2 keys. I could not do this with following code: I always received the error message: Unable to determine composite primary key ordering for type ‘Project.Models.ModelObject’. Use the ColumnAttribute or the […]

SQL

How to delete and regenerate a foreign key object

Posted on

Last a college asked if it was possible to delete a foreign key object and regenerate it from the original database. His database objects where dossiers and clients. Client are managed in another application. Therefore it was needed that he could throw his clients table away and regenerate it with the latest version of the […]