예제 #1
0
        public void 添加提供具体服务(个人 务管理员, 务 具体服务)
        {
            Guid   pId  = Guid.Empty;
            String name = 务管理员.姓名;

            if ((务管理员.个人编码 == null) || (务管理员.个人编码 == Guid.Empty))
            {
                //if (this.查找服务管理员_关键字(name).Count == 0)
                //{
                //    pId = ServiceDirectoryDBAccess.AddNewPersonal(服务管理员);

                //}
                //else
                //{
                //    pId = this.查找服务管理员_关键字(name)[0].个人编码;

                //}
                pId = ServiceDirectoryDBAccess.AddNewPersonal(务管理员);
            }
            else
            {
                pId = 务管理员.个人编码;
            }
            具体服务.个人编码 = pId;
            //List<服务地址> templates = (务地址)具体服务.服务地址;
            //Guid 管理员编码 = 具体服务.个人编码.Value;
            Guid sId = ServiceDirectoryDBAccess.AddBusinessService(具体服务);

            //foreach(服务地址 template in templates)
            //{
            //    template.服务编码 = sId;
            //    this.添加服务绑定(template);
            //}
            //throw new System.NotImplementedException();
        }
예제 #2
0
 public void 添加服务管理员(个人 务管理员)
 {
     ServiceDirectoryDBAccess.AddNewPersonal(务管理员);
 }