示例#1
0
 partial void DeleteMessage(Message instance);
示例#2
0
 partial void InsertMessage(Message instance);
示例#3
0
 partial void UpdateMessage(Message instance);
示例#4
0
文件: ServiceImpl.cs 项目: yaq/yaq
        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();
            }
        }