annotate Source/Common/Configuration.cs @ 7:99cd4f3947d8

Закомментированы строки мешающие добавлению авиа дежурств.
author nickolay
date Fri, 27 Oct 2017 18:26:29 +0300
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 using System;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 namespace BLToolkit.Common
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 using Mapping;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 public static class Configuration
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 static Configuration()
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 NotifyOnEqualSet = true;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 TrimDictionaryKey = true;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 CheckNullReturnIfNull = NullEquivalent.DBNull;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 OpenNewConnectionToDiscoverParameters = true;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
17 public enum NullEquivalent { DBNull, Null, Value }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
18
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
19 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
20 /// Specifies what value should be returned by <c>TypeAccessor.CheckNull</c>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
21 /// if <see cref="BLToolkit.Reflection.IsNullHandler"/> was specified and interpreted current property
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22 /// value as null. Default is: <see cref="DBNull"/>.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 public static NullEquivalent CheckNullReturnIfNull { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
27 /// Controls global trimming behaviour of mapper. Specifies whether trailing spaces
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
28 /// should be trimmed when mapping from one entity to another. Default is: false.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
29 /// To specify trimming behaviour other than global, please user <see cref="TrimmableAttribute"/>.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
30 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
31 public static bool TrimOnMapping { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
32
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
33 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
34 /// Controls global trimming behaviour of mapper for dictionary keys. Specifies whether trailing spaces
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
35 /// should be trimmed when adding keys to dictionaries. Default is: true.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
36 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
37 public static bool TrimDictionaryKey { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
38
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
39 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
40 /// Specifies default behavior for PropertyChange generation. If set to true, <see cref="BLToolkit.EditableObjects.EditableObject.OnPropertyChanged"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
41 /// is invoked even when current value is same as new one. If set to false, <see cref="BLToolkit.EditableObjects.EditableObject.OnPropertyChanged"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
42 /// is invoked only when new value is being assigned. To specify notification behaviour other than default, please see
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
43 /// <see cref="BLToolkit.TypeBuilder.PropertyChangedAttribute"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
44 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
45 public static bool NotifyOnEqualSet { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
46
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
47 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
48 /// Controls whether attributes specified on base types should be always added to list of attributes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
49 /// when scanning hierarchy tree or they should be compared to attributes found on derived classes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
50 /// and added only when not present already. Default value: false;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
51 /// WARNING: setting this flag to "true" can significantly affect initial object generation/access performance
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
52 /// use only when side effects are noticed with attribute being present on derived and base classes.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
53 /// For builder attributes use provided attribute compatibility mechanism.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
54 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
55 public static bool FilterOutBaseEqualAttributes { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
56
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
57 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
58 /// Controls whether attributes specified on base types should be always added to list of attributes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
59 /// when scanning hierarchy tree or they should be compared to attributes found on derived classes
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
60 /// and added only when not present already. Default value: false;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
61 /// WARNING: setting this flag to "true" can significantly affect initial object generation/access performance
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
62 /// use only when side effects are noticed with attribute being present on derived and base classes.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
63 /// For builder attributes use provided attribute compatibility mechanism.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
64 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
65 public static bool OpenNewConnectionToDiscoverParameters { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
66
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
67 public static class ExpressionMapper
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
68 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
69 public static bool IncludeComplexMapping { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
70 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
71
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
72 public static class Linq
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
73 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
74 public static bool PreloadGroups { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
75 public static bool IgnoreEmptyUpdate { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
76 public static bool AllowMultipleQuery { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
77 public static bool GenerateExpressionTest { get; set; }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
78 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
79
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
80 public static class NullableValues
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
81 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
82 public static Int32 Int32 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
83 public static Double Double = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
84 public static Int16 Int16 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
85 public static Boolean Boolean = false;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
86 [CLSCompliant(false)]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
87 public static SByte SByte = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
88 public static Int64 Int64 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
89 public static Byte Byte = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
90 [CLSCompliant(false)]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
91 public static UInt16 UInt16 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
92 [CLSCompliant(false)]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
93 public static UInt32 UInt32 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
94 [CLSCompliant(false)]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
95 public static UInt64 UInt64 = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
96 public static Single Single = 0;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
97 public static Char Char = '\x0';
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
98 public static DateTime DateTime = DateTime.MinValue;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
99 public static TimeSpan TimeSpan = TimeSpan.MinValue;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
100 public static DateTimeOffset DateTimeOffset = DateTimeOffset.MinValue;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
101 public static Decimal Decimal = 0m;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
102 public static Guid Guid = Guid.Empty;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
103 public static String String = string.Empty;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
104 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
105 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
106 }