Index was outside the bounds of the array. IndexOutOfRangeException in LINQ to SQL
Posted
by gtas
on Stack Overflow
See other posts from Stack Overflow
or by gtas
Published on 2010-04-22T01:46:26Z
Indexed on
2010/04/22
1:53 UTC
Read the original article
Hit count: 528
linq-to-sql
|c#
Im getting this exception in the
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); <---- HERE !!!
}
}
of one recently table association i created, there lots of same associations around the database, and this happened in the 4 specific tables i added. Its 1...* relationship and association is Primary Table -> Id (identity auto generated) Foreign PId column int not null.
I just dont get it....Im using SqlMetal for generation, i regenerated the schema, rebuild, same. This is causing while inserting row in DevExpress XtraGrid, but i dont think this should be issue, same control with same functionality but for different tables works ok.
I use grid's event for append value in a property when the entity creating. I disabled this but same again.
Recreated the association. No change, exception occurs.
Any ideas?
© Stack Overflow or respective owner