Hi,
How can ColumnAttribute data be read from xxDataClasses.c s 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.OnNameChan ging(value);
this.SendProper tyChanging();
this._Name = value;
this.SendProper tyChanged("Name ");
this.OnNameChan ged();
}
}
}
Attribute.GetCu stomAttribute(t his.Name.GetTyp e().Module,type of(System.Data. Linq.Mapping.Co lumnAttribute))
returned null,
Attribute.GetCu stomAttributes( this.Name.GetTy pe().Module) returned
only the System.Security .UnverifiableCo deAttribute 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.c s 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.OnNameChan ging(value);
this.SendProper tyChanging();
this._Name = value;
this.SendProper tyChanged("Name ");
this.OnNameChan ged();
}
}
}
Attribute.GetCu stomAttribute(t his.Name.GetTyp e().Module,type of(System.Data. Linq.Mapping.Co lumnAttribute))
returned null,
Attribute.GetCu stomAttributes( this.Name.GetTy pe().Module) returned
only the System.Security .UnverifiableCo deAttribute 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
Comment