Try putting the initialization of
db
and
specialLoans
into the constructor.
public class wcfSpecialLoansImplementation
{
SpecialLoansDataContext db;
object specialLoans;
public wcfSpecialLoansImplementation
{
db = new SpecialLoansDataContext();
specialLoans = from specialLoan in db.SPECIAL_LOAN select specialLoan;
}
}