void Nish(char* szBlog);

Nish’s thoughts on MFC, C++/CLI and .NET

void Nish(char* szBlog); header image 4

Entries from January 2009

Follow up to writing enums to a database

January 29th, 2009 · No Comments

In my previous blog entry, I had recommended storing enums using their string representations when writing them to a database. There’s a caveat there though – the enum names should be guaranteed to remain stable, because if you change the name of an enum member, it breaks the database. For my specific scenario I ended [...]

[Read more →]

Tags: General

Recommendation for writing enums to a database

January 28th, 2009 · 3 Comments

I was reviewing some code and found that there were a few enum types that did not have a None value (which is a recommended practice). I thought I’d go ahead and add the None values when I found that the enum values were being written to the database via calls to Convert.ToInt32. Of course [...]

[Read more →]

Tags: C#/.NET · CLR/.NET BCL