Skip to content

Instantly share code, notes, and snippets.

@ashic
Created July 28, 2011 13:58
Show Gist options
  • Save ashic/1111599 to your computer and use it in GitHub Desktop.
Save ashic/1111599 to your computer and use it in GitHub Desktop.
testing duck
namespace DuckTest
{
class Program
{
static void Main(string[] args)
{
var connectionString = ConfigurationManager.ConnectionStrings["DB"].ConnectionString;
var db = new DuckContext(connectionString);
db.In<Person>()
.Where(x => x.Age == 5)
.Update(x => new Person {Name = "Foo"});
}
}
[Duck.Table(Name="People")]
public class Person
{
public Guid PersonId { get; set; }
public string Name { get; set; }
public int Age { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment