Example #1
0
        public static bool RemoveBindingTemplate(务地址 entity)
        {
            bool isdeleteOk = true;

            try
            {
                serviceDirectoryDC.务地址.DeleteOnSubmit(GetTemplateByTID(entity.务地址编码));
                serviceDirectoryDC.SubmitChanges();
            }catch
            {
                isdeleteOk = false;
            }
            return(isdeleteOk);
        }
Example #2
0
        public static Guid AddBindingTemplate(务地址 entity)
        {
            Guid BID = Guid.NewGuid();

            try
            {
                entity.务地址编码 = BID;
                serviceDirectoryDC.务地址.InsertOnSubmit(entity);
                serviceDirectoryDC.SubmitChanges();
            }
            catch
            {
                BID = Guid.Empty;
            }
            return(BID);
        }
Example #3
0
        public static bool UpdateBindingTemplate(务地址 entity)
        {
            bool isUpdateOk = true;

            try
            {
                var entities = serviceDirectoryDC.务地址.Where(p => p.务地址编码 == entity.务地址编码);
                entities.ToArray()[0].务编码  = entity.务编码;
                entities.ToArray()[0].访问地址 = entity.访问地址;
                entities.ToArray()[0].描述   = entity.描述;
                entities.ToArray()[0].状态   = entity.状态;
                entities.ToArray()[0].绑定类型 = entity.绑定类型;
                entities.ToArray()[0].方法名称 = entity.方法名称;
                serviceDirectoryDC.SubmitChanges();
            }catch
            {
                isUpdateOk = false;
            }
            return(isUpdateOk);
        }
Example #4
0
 private void detach_服务地址(务地址 entity)
 {
     this.SendPropertyChanging();
     entity.务 = null;
 }
Example #5
0
 private void attach_服务地址(务地址 entity)
 {
     this.SendPropertyChanging();
     entity.务 = this;
 }
Example #6
0
 partial void Delete服务地址(务地址 instance);
Example #7
0
 partial void Update服务地址(务地址 instance);
Example #8
0
 partial void Insert服务地址(务地址 instance);