Skip to content

Instantly share code, notes, and snippets.

@agilejon
Created September 21, 2012 00:42
Show Gist options
  • Select an option

  • Save agilejon/3759157 to your computer and use it in GitHub Desktop.

Select an option

Save agilejon/3759157 to your computer and use it in GitHub Desktop.
// IFooDAO returns:
public class BaseFoo {
[BsonId]
public long _Id { get; set;}
}
// IFooService returns:
public class FooDTO {
public string FooId { get; set; }
}
//
//
// Alternatively, BaseFoo could be like this:
public class BaseFoo {
[BsonId]
public long FooId { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment