using System.Collections.Generic;
public static void Main()
int[] intArray = new int[]{1,4,5,6,7,3,2};
for(int i=0; i < intArray.Length ; i++)
getproduct(product productID)
using(var db = new ProductDbContext())
var Product = await db.Products.where(p => p.productID == productID).FirstorDefaultAsync();
SqlConnection connection = new Sqlconnection(Connectionstring);
var Product = connection.ExecuteStoreProcedure("GetProductDetails",ProductID);
Catch(DbconnectionException e)
logError("Error in fetching Product detail"+ e.message);
logError("Error in fetching Product detail"+ e.message);
class Product{ public int Number = 1; public string Name = "A"}
product p = new Product();
class Product{ public int Number = 1; public string Name = "A"
public UpdateValues(product p)
product p = new Product();
protected abstract virtual int CalculateSalary();
Console.writeline("Working..");
public class ContractEmployee : Employee
public override int calculateSalary(){
public class PermenantEmployee: Employee
public override int calculateSalary(){
Public class CC1: ContractEmployee
public override calculateSalary()
public class CC2: ContractEmployee
public override calculateSalary()
ContractEmployee ce = new ContractEmployee();
ContractEmployee ce = new CC2();
CID int Identity(1001,1) primary key,
Name Varchar(50) NOT null,
City Varchar(50) NOT null)
AccNum int Identity(10001,1) primary key,
AccType Varchar(25) NOT null,
CID int Foreign key (Table Customer Coloum CID))
select Max(C.Name),count(1) as NoofAccounts from Account A
inner join Customer C on A.CID = C.CID
select C.Name from Account A
full outer join Customer C on A.CID = C.CID
select C.Name from Customer C
left outer Account A on A.CID = C.CID