public interface IUserService
{
[Sql("select * from Users where Id=@id")]
UserDTO GetUser(Guid id);
[Sql("select * from Users")]
IEnumerable<UserDTO> GetUsers();
[Sql("insert into Users values (@Id,@Name)")]
void NewUser(UserDTO user);
}
and in compile time library should generate its implementations without asking me anything
//This class should be generated on compile time
public partial class UserServiceImplementation : IUserService
{
...