partial void DeleteMessage(Message instance);
partial void InsertMessage(Message instance);
partial void UpdateMessage(Message instance);
public void PutMessage(string queueName, Message message, TimeSpan timeToLive) { var msg = new Data.Message(); msg.Queue = queueName; if (message.Content != null) msg.Content = message.Content; using (var dc = new Data.MessageDataContext()) { dc.Messages.InsertOnSubmit(msg); dc.SubmitChanges(); } }