Adam Schroder

Its Schotime.com!

Browse by Tags

All Tags » C# (RSS)
Integrating xVal Validation with Linq-to-Sql
In a previous post I showed you how you can use xVal and the IDataErrorInfo class to add validation to your Asp.net MVC website. In this post I will extend that to Linq-to-Sql and the classes it generates. The northwind database has a suppliers table...
Custom Validation Attributes
In my last post I showed you how to use Validation attributes on your model for validation. Today I will show how you can create your own attributes that can provide custom validation for you. To accomplish this we need to inherit from ValidationAttribute...
Posted: Mar 10 2009, 09:12 PM by schotime | with no comments
Filed under: , , , ,
Validation with Asp.net MVC, xVal & IDataerrorInfo
I've been playing around with lots of different Validation concepts recently and I think I have come up with something that will be very useful. Hopefully you will also find it useful. Firstly I have been looking at Steve Sanderson 's new open source...
Posted: Mar 05 2009, 09:50 PM by schotime | with 9 comment(s)
Filed under: , , ,
Custom Authorization With Asp.net MVC
The whole advantage with MVC over webforms is extensibility at every point. Extensibility, Extensibility, Extensibility. Authorization is a very important and every web project has there own needs and requirements. Full customisation is paramount. Here...
Posted: Feb 17 2009, 09:27 PM by schotime | with 1 comment(s)
Filed under: , ,
Retrieving Data Without the Dataset With Custom SQL
In my previous post I used custom sql query and transformed the results into a nested class. However you may have overlooked way I got the data into a class. It quite easy and will work with all database connectors that implement IDbConnection. Here is...
Posted: Feb 12 2009, 08:47 PM by schotime | with no comments
Filed under: , ,
Binding A String to a Checkbox
In a recent project I was attempting to list data from a configuration settings database table. The values were boolean but stored as a 'Y' or a 'N' so that only one set of SQL's was needed to be written, as the product supports both Oracle and SQL Server...
Linq and Regular Expressions
With Linq now standard in .NET 3.5, there is no reason why we shouldn't use it. After all its full of features that can be used by any object that inherits the type IEnumberable. With such power at our fingertips, sorting, filtering, manipulation etc...
Posted: Feb 16 2008, 11:29 AM by schotime | with no comments
Filed under: , , ,
More Posts