LINQ in Action roller

Field Length

Hi NG, A field in my database is defined as Title(nvarchar, 50). Is there any possiblity (using attributes) to define a check on the Title property? Code Snippet private string _Title; [Column(Name = "Title" , Storage = "_Title" , DBType = "nvarchar" , CanBeNull = false )] public int Title { get { return this ._Title; } set { this ._Title = value ; } } I can define the DBType but how can I define the size of this field? Thx for your help, Ozgur Aytekin Read More...
Published Friday, June 8, 2007 6:01 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication