Skip to content

Instantly share code, notes, and snippets.


Mike Boddin mike-boddin

View GitHub Profile
markrendle / MITEA.license
Created Mar 30, 2015
The "MIT Except Apple" License
View MITEA.license
The MIT-except-Apple License (MIT-EA)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person (except
anybody associated with Apple Inc.) obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
duraz0rz / With_ORM.cs
Last active Aug 31, 2018
C# example with and without ORM
View With_ORM.cs
Very simple example using LINQ to SQL and based on the MSDN LINQ to SQL page.
Make sure you include System.Data.Linq and System.Data.Linq.Mappings in your usings.
// Table you want to associate with the entity
public class Customer
// Columns in the database. Should have the same name between database and class variable
You can’t perform that action at this time.