alkampfer on October 31st, 2008

Yesterday a friend of DotNetMarche asked me this question: “I have the need to store serialized objects into database , I can choose between binary or xml format, which is smaller in size?”
My first answer was “Binary should occupy less space because it is more compact” but he told me that DBA checked that xml [...]

Continue reading about Binary versus Xml Serialization size

alkampfer on October 28th, 2008

I  usually use a fluent interface to make assertion on data on database, a typical assertion looks like

DbAssert.OnQuery("select * from tablename")
.That("column1", Is.EqualTo(15))
.That("column2", Is.EqualTo(90))
.That("column2", Is.EqualTo(99))
.ExecuteAssert();

This is a perfectly valid code, it created a DbAssert object but never execute [...]

Continue reading about Terminating a fluent interface.

alkampfer on October 21st, 2008

In this old post I spoke about a user type that permits you to store a IList<String> property with nhibernate  in a single field of a database with a # separated list of string. That example did not contain the full code of the usertype, so here it is.

1 class [...]

Continue reading about Some details on older post about usertype

During application’s lifecycle, the activity of bug tracking is a really important one. You should use some software (Team foundation server or some free tools like mantis) to keep track of application’s bugs. Usually, even if you use Test Driven Approach, you cannot intercept all bugs with unit tests, so you should be prepared to [...]

Continue reading about How to report a bug, the importance of good details and reproducibility information

alkampfer on October 17th, 2008

The LoginView control is a very interesting one, it permits you to specify different content templates in the page depending on the role of the current user. Sometimes this scheme is not enough, in a project I’m working in, we have five roles, and the software is subdivided in areas, each role can have  read, [...]

Continue reading about Create a “LoginView like” control in asp.net