משהו יכול לעזור לי אני עדין מסתבכת בשליפת נתונים מה DB
כתבתי כך :
זה מתחבר לי לDB ולא שולף נתונים אני לא מצליחה לגשת לטבלה ... הדגשתי איפה מסומן לי בעיה באדום ...
DataContext dc = new DataContext("Data
Source=213.151.36.65,1433;Initial Catalog=;Persist Security Info=True;User ID=;Password=");
using (var dt = new DataClasses1DataContext("Data Source=213.151.36.65,1433;Initial Catalog=;Persist Security Info=True;User ID=;Password="))
{
//פה השגיאה var s1 = from Ocrd in dt.
select Math.Max(Ocrd.CardCode);
}
כתבתי כך :
זה מתחבר לי לDB ולא שולף נתונים אני לא מצליחה לגשת לטבלה ... הדגשתי איפה מסומן לי בעיה באדום ...
DataContext dc = new DataContext("Data
Source=213.151.36.65,1433;Initial Catalog=;Persist Security Info=True;User ID=;Password=");
using (var dt = new DataClasses1DataContext("Data Source=213.151.36.65,1433;Initial Catalog=;Persist Security Info=True;User ID=;Password="))
{
//פה השגיאה var s1 = from Ocrd in dt.
select Math.Max(Ocrd.CardCode);
}