Source code used in Video
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StoredProcedure { class Program { static void Main(string[] args) { DataClasses1DataContext context = new DataClasses1DataContext(); // Call SP with parameter int studentID = 2; var result= context.GetStudentGrades(studentID); foreach (var r in result) { Console.WriteLine(r.Grade); } // call SP with parameter int? a=1; var result1 = context.GetStudentCount(ref a); Console.WriteLine(a); Console.ReadKey(true); } } }Follow @debugmode_
***********************************************************
3 responses to “Learning Video Executing Stored Procedure in LINQ to SQL”
[…] Learning Video Executing Stored Procedure in LINQ to SQL and Video Executing SQL Query in LINQ to SQL and Video Fetching Tables and Columns name in LINQ to SQL (Dhananjay Kumar) […]
[…] Learning Video Executing Stored Procedure in LINQ to SQL […]
Nice article…good work mate