Last change
on this file since 4009 was
3939,
checked in by hmayr, 14 years ago
|
first commit from hmayr, just minor changes (#1046)
- formatted source code files to fit HeuristicLab standards
- deleted old LINQ to SQL Classes
- create LINQ to SQL Class for HeuristicLabUser (just prototype)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[3932] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Runtime.Serialization;
|
---|
| 5 | using System.ServiceModel;
|
---|
| 6 | using System.Text;
|
---|
| 7 |
|
---|
[3939] | 8 | namespace Service {
|
---|
| 9 | // HINWEIS: Wenn Sie hier den Schnittstellennamen "IService1" ändern, müssen Sie ebenfalls den Verweis auf "IService1" in "App.config" aktualisieren.
|
---|
| 10 | [ServiceContract]
|
---|
| 11 | public interface IService1 {
|
---|
| 12 | [OperationContract]
|
---|
| 13 | string GetData(int value);
|
---|
[3932] | 14 |
|
---|
[3939] | 15 | [OperationContract]
|
---|
| 16 | CompositeType GetDataUsingDataContract(CompositeType composite);
|
---|
[3932] | 17 |
|
---|
[3939] | 18 | // AUFGABE: Hier Dienstvorgänge hinzufügen
|
---|
| 19 | }
|
---|
[3932] | 20 |
|
---|
[3939] | 21 | // Verwenden Sie einen Datenvertrag, wie im folgenden Beispiel dargestellt, um Dienstvorgängen zusammengesetzte Typen hinzuzufügen.
|
---|
| 22 | [DataContract]
|
---|
| 23 | public class CompositeType {
|
---|
| 24 | bool boolValue = true;
|
---|
| 25 | string stringValue = "Hello ";
|
---|
[3932] | 26 |
|
---|
[3939] | 27 | [DataMember]
|
---|
| 28 | public bool BoolValue {
|
---|
| 29 | get { return boolValue; }
|
---|
| 30 | set { boolValue = value; }
|
---|
| 31 | }
|
---|
[3932] | 32 |
|
---|
[3939] | 33 | [DataMember]
|
---|
| 34 | public string StringValue {
|
---|
| 35 | get { return stringValue; }
|
---|
| 36 | set { stringValue = value; }
|
---|
[3932] | 37 | }
|
---|
[3939] | 38 | }
|
---|
[3932] | 39 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.