日期:2014-05-17  浏览次数:20423 次

WCF 怎么让他执行一次啊。
IGetEmployees.cs 页面

        [OperationContract]
        [WebInvoke(Method = "GET",
                   ResponseFormat = WebMessageFormat.Json,
                   RequestFormat = WebMessageFormat.Json,
                   BodyStyle = WebMessageBodyStyle.Wrapped,
                   UriTemplate = "json/SpecificationListCS/{hh_mnfBrand}")]
        void SpecificationListCS(string hh_mnfBrand);



GetEmployees.svc 页面

        public void SpecificationListCS(string hh_mnfBrand)
        {
            OemBLL oem = new OemBLL();
            oem.AddOemOemGroupName(hh_mnfBrand);
            //return false;
        }

GetEmployees.svc页面每次都要去执行两次方法,执行两次的话,添加语句的时候他每次都要添加两条数据到数据库中,怎么让他去执行一次啊。请高手指点一二啊。
wcf

------解决方案--------------------
WebMessageBodyStyle.WrappedResponse,