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 [...]
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 [...]
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 [...]
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




