M
Mike P
I am working through this tutorial :
http://weblogs.asp.net/scottgu/archive/2007/07/11/linq-to-sql-part-4-upd
ating-our-database.aspx
and trying to get this code to work :
using System;
public partial class Order
{
partial void OnValidate()
{
if (RequiredDate < OrderDate)
{
throw new Exception("Deliver date is before order date!");
}
}
}
But I am getting this error :
No defining declaration found for implementing declaration of partial
method 'Order.OnValidate()'
Can anybody help with this?
http://weblogs.asp.net/scottgu/archive/2007/07/11/linq-to-sql-part-4-upd
ating-our-database.aspx
and trying to get this code to work :
using System;
public partial class Order
{
partial void OnValidate()
{
if (RequiredDate < OrderDate)
{
throw new Exception("Deliver date is before order date!");
}
}
}
But I am getting this error :
No defining declaration found for implementing declaration of partial
method 'Order.OnValidate()'
Can anybody help with this?