Mercurial > pub > bltoolkit
comparison Demo/WebServices/Server/PersonService.asmx.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
1 using System; | |
2 using System.Collections.Generic; | |
3 using System.Web.Services; | |
4 | |
5 using BLToolkit.DataAccess; | |
6 | |
7 namespace Demo.WebServices.Server | |
8 { | |
9 using ObjectModel; | |
10 using WebServices; | |
11 | |
12 [GenerateWebService("http://tempuri.org/PersonService.asmx")] | |
13 [GenerateXmlInclude(typeof(Person))] | |
14 public abstract class PersonService : DataAccessor<Person>, IDataAccessor | |
15 { | |
16 [GenerateWebMethod] | |
17 public abstract Person SelectByKey(int id); | |
18 | |
19 [GenerateWebMethod(true)] | |
20 public abstract List<Person> SelectAll(); | |
21 | |
22 [GenerateWebMethod, ActionName("SelectAll")] | |
23 public abstract XmlMap<string,Person> SelectMap(); | |
24 | |
25 [WebMethod] | |
26 public int MethodWithOutParams(out string str, out Guid guid) | |
27 { | |
28 str = "string"; | |
29 guid = Guid.NewGuid(); | |
30 | |
31 return 123; | |
32 } | |
33 } | |
34 } |