L
lausivcid
Hi,
How can ColumnAttribute data be read from xxDataClasses.cs Columns
like this?
[Column(Storage="_Name", DbType="VarChar(256) NOT
NULL", CanBeNull=false)]
public string Name
{
get
{
return this._Name;
}
set
{
if ((this._Name != value))
{
this.OnNameChanging(value);
this.SendPropertyChanging();
this._Name = value;
this.SendPropertyChanged("Name");
this.OnNameChanged();
}
}
}
Attribute.GetCustomAttribute(this.Name.GetType().Module,typeof(System.Data.Linq.Mapping.ColumnAttribute))
returned null,
Attribute.GetCustomAttributes(this.Name.GetType().Module) returned
only the System.Security.UnverifiableCodeAttribute attribute.
Specifically I want to parse DbType to get the maximum length of the
column. Is there any other way to find the column width?
Thanks,
lausivcid
How can ColumnAttribute data be read from xxDataClasses.cs Columns
like this?
[Column(Storage="_Name", DbType="VarChar(256) NOT
NULL", CanBeNull=false)]
public string Name
{
get
{
return this._Name;
}
set
{
if ((this._Name != value))
{
this.OnNameChanging(value);
this.SendPropertyChanging();
this._Name = value;
this.SendPropertyChanged("Name");
this.OnNameChanged();
}
}
}
Attribute.GetCustomAttribute(this.Name.GetType().Module,typeof(System.Data.Linq.Mapping.ColumnAttribute))
returned null,
Attribute.GetCustomAttributes(this.Name.GetType().Module) returned
only the System.Security.UnverifiableCodeAttribute attribute.
Specifically I want to parse DbType to get the maximum length of the
column. Is there any other way to find the column width?
Thanks,
lausivcid