Click here to Skip to main content
16,022,060 members

Comments by Member 8989640 (Top 1 by date)

Member 8989640 27-Nov-14 7:15am View    
code at line 30:
public abstract class RepositoryCollection<t> where T : class
{
protected BookingObjects dataInstance;

public RepositoryCollection(BookingObjects instance)
{
dataInstance = instance;
}

protected T GetUniqueItem(System.Data.Linq.Table<t> table, Func<t, bool=""> whereClause)
{
return table.Where(whereClause).SingleOrDefault();
}
}