public class Customer {
public string CustomerID;
public string CompanyName;
public string City;
public string State;
public string Country;
}

public class Northwind : DataContext {
public Northwind(string connection) :
	this(connection, GetMapping()) { }

public Northwind(string connection, MappingSource mapping) :
	base(connection, mapping) { }

static MappingSource GetMapping() {
using (StreamReader reader = new StreamReader("Northwind.xml")) {
	return XmlMappingSource.FromReader(new XmlTextReader(reader));
	}
}

public System.Data.Linq.Table<Customer> Customers {
	get { return this.GetTable<Customer>(); }
}

}
