Datei: IntegrationTests/PureBusinessClasses/Büro.cs

Last Commit (397e4c7)
1 //
2 // Copyright (c) 2002-2016 Mirko Matytschak
3 // (www.netdataobjects.de)
4 //
5 // Author: Mirko Matytschak
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
10 // Software, and to permit persons to whom the Software is furnished to do so, subject to the following
11 // conditions:
12
13 // The above copyright notice and this permission notice shall be included in all copies or substantial portions
14 // of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17 // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 // DEALINGS IN THE SOFTWARE.
21
22
23 using System;
24 using NDO;
25
26 namespace Reisekosten.Personal {
27 ····/// <summary>
28 ····/// Buero eines Mitarbeiters
29 ····/// </summary>
30 ····[NDOPersistent]
31 ····public class Buero : IPersistentObject
32 ····{
33 ········private string zimmer;
34
 
 
35 ········public Buero() {}··// wird für NDO laden benötigt.
36
37 ········public Buero(string zimmer)
38 ········{
39 ············this.zimmer = zimmer;
40 ········}
41
42 ········public string Zimmer
43 ········{
44 ············get { return zimmer; }
45 ············set { zimmer = value; }
 
 
 
 
 
 
 
 
 
 
 
 
46 ········}
 
 
 
 
 
 
 
 
47
48 ········public NDOObjectState NDOObjectState { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
49 ········public ObjectId NDOObjectId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
50 ········public Guid NDOTimeStamp { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
51
52 ········public void NDOMarkDirty()
53 ········{
54 ············throw new NotImplementedException();
55 ········}
56 ····}
57 }
58
New Commit (a366466)
1 //
2 // Copyright (c) 2002-2016 Mirko Matytschak
3 // (www.netdataobjects.de)
4 //
5 // Author: Mirko Matytschak
6 //
7 // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
10 // Software, and to permit persons to whom the Software is furnished to do so, subject to the following
11 // conditions:
12
13 // The above copyright notice and this permission notice shall be included in all copies or substantial portions
14 // of the Software.
15 //
16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
17 // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20 // DEALINGS IN THE SOFTWARE.
21
22
23 using System;
24 using NDO;
25
26 namespace Reisekosten.Personal {
27 ····/// <summary>
28 ····/// Buero eines Mitarbeiters
29 ····/// </summary>
30 ····[NDOPersistent]
31 ····public class Buero : IPersistentObject
32 ····{
33 ········private string zimmer;
34 private int nummer;
35 ········private bool hatSchnellesInternet;
36 ········private bool hatCat6Anschluss;
37 ········public Buero() {}··// wird für NDO laden benötigt.
38
39 ········public Buero(string zimmer)
40 ········{
41 ············this.zimmer = zimmer;
42 ········}
43
44 ········public string Zimmer
45 ········{
46 ············get { return zimmer; }
47 ············set { zimmer = value; }
48 ········}
49
50 ········public int Nummer
51 ········{
52 ············get { return this.nummer; }
53 ············set { this.nummer = value; }
54 ········}
55
56 ········public bool HatSchnellesInternet
57 ········{
58 ············get { return this.hatSchnellesInternet; }
59 ············set { this.hatSchnellesInternet = value; }
60 ········}
61
62 ········public bool HatCat6Anschluss
63 ········{
64 ············get { return this.hatCat6Anschluss; }
65 ············set { this.hatCat6Anschluss = value; }
66 ········}
67
68
69
70 ········public NDOObjectState NDOObjectState { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
71 ········public ObjectId NDOObjectId { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
72 ········public Guid NDOTimeStamp { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
73
74 ········public void NDOMarkDirty()
75 ········{
76 ············throw new NotImplementedException();
77 ········}
78 ····}
79 }
80