Hello,
How Can I call a stored procedure?
For Table it works,but for Sp it has a error...
Does it supported in 2011.3?
Thank you.
LinQ To SQL For Stored Procedures
LinQ To SQL For Stored Procedures
is it possible?
LinQ To SQL For Stored Procedures
Hello,
Please see the sample in attachment.
Thank you.
Please see the sample in attachment.
Thank you.
- Attachments
-
- 1666.LinqToSql.Net.zip
- (24.95 KiB) Downloaded 235 times
LinQ To SQL For Stored Procedures
Hello.
Thanks Aleksey,
For Table It Works,but It does not work for Stored Procedures.
I Use This code for Web:
is It Possible To call a Stored Procedures with LINQ?
Thanks Aleksey,
For Table It Works,but It does not work for Stored Procedures.
I Use This code for Web:
Code: Select all
String AppDirectory = HttpContext.Current.Server.MapPath(String.Empty);
using (ReportDataContext db = new ReportDataContext())
{
IEnumerable categories = db.SPOneData(2);
StiReport report = new StiReport();
report.Load(AppDirectory + "\\Report.mrt");
report.RegData("Categories", categories);
StiWebViewer1.Report = report;
}
LinQ To SQL For Stored Procedures
Hello,
You can use the following code:
Please check the sample in attachment.
Thank you.
You can use the following code:
Code: Select all
using (NorthwindDataContext context = new NorthwindDataContext())
{
ISingleResult result =
context.SalesByCategory("Beverages", "");
report.RegData("SalesByCategory", result.ToList());
}
Thank you.
- Attachments
-
- 1684.LinqToSql(with StoredProc).Net.zip
- (25.45 KiB) Downloaded 254 times