Step 1: In mapper .cs i have wrote following code
public string functionname(ref DataContext dc)
{
}
Step 2: In asp.cs (codebehind ) i have followin
using (DataContext Conn = new DataContext())
{
var obj=Mapper.functionname(ref Conn);
}
Error:Cannot pass 'Conn' as a argument or ref because it is a 'using' variable
in this line under 'Conn' getting red mark
var obj=Mapper.functionname(ref Conn);