Search
Project Description
Inspired by the Fluent NHibernate project, Fluent Linq to Sql allows you to define mappings for Linq to Sql entities using a fluent interface rather than attributes or XML.

NOTE This project is no longer under active development.

Example Mapping
public class CustomerMapping : Mapping<Customer> {
   public CustomerMapping() {
	Identity(customer => customer.Id);
	Map(customer => customer.Name);
	HasMany(customer => customer.Orders).OtherKey(order => order.CustomerId);
   }
}

var mappingSource = new FluentMappingSource("Mydatabase");
mappingSource.AddFromAssemblyContaining<CustomerMapping>();

var dataContext = new DataContext("connection-string", mappingSource);
var customers = from c in dataContext.GetTable<Customer>() select c;

Documentation
Build Server
TeamCity
Last Successful Build
Code Coverage
Last edited Sep 23 2010 at 8:46 AM by JeremyS, version 13
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.1.11.18365