You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2022. It is now read-only.
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue";
93
-
varq=Db.From<Waybill>().Where(filter);
178
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue";
179
+
varq=Db.From<WaybillBase>().Where(filter);
94
180
vartarget=Db.Select(q);
95
181
Assert.AreEqual(3,target.Count);
96
182
}
97
183
98
184
[Test]
99
185
publicvoidCan_Where_using_constant_filter2()
100
186
{
101
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="Any";
102
-
varq=Db.From<Waybill>().Where(filter);
187
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="Any";
188
+
varq=Db.From<WaybillBase>().Where(filter);
103
189
vartarget=Db.Select(q);
104
190
Assert.AreEqual(0,target.Count);
105
191
}
106
192
107
193
[Test]
108
194
publicvoidCan_Where_using_constant_filter3()
109
195
{
110
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty!="WaybillVirtPropertyValue";
111
-
varq=Db.From<Waybill>().Where(filter);
196
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty!="WaybillVirtPropertyValue";
197
+
varq=Db.From<WaybillBase>().Where(filter);
112
198
vartarget=Db.Select(q);
113
199
Assert.AreEqual(0,target.Count);
114
200
}
115
201
116
202
[Test]
117
203
publicvoidCan_Where_using_constant_filter4()
118
204
{
119
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty!="Any";
120
-
varq=Db.From<Waybill>().Where(filter);
205
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty!="Any";
206
+
varq=Db.From<WaybillBase>().Where(filter);
121
207
vartarget=Db.Select(q);
122
208
Assert.AreEqual(3,target.Count);
123
209
}
124
210
125
211
[Test]
126
212
publicvoidCan_Where_using_constant_filter5()
127
213
{
128
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"||x.VirtProperty2=="WaybillVirtPropertyValue2";
129
-
varq=Db.From<Waybill>().Where(filter);
214
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"||x.VirtProperty2=="WaybillVirtPropertyValue2";
215
+
varq=Db.From<WaybillBase>().Where(filter);
130
216
vartarget=Db.Select(q);
131
217
Assert.AreEqual(3,target.Count);
132
218
}
133
219
134
220
[Test]
135
221
publicvoidCan_Where_using_constant_filter6()
136
222
{
137
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"&&x.VirtProperty2=="WaybillVirtPropertyValue2";
138
-
varq=Db.From<Waybill>().Where(filter);
223
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"&&x.VirtProperty2=="WaybillVirtPropertyValue2";
224
+
varq=Db.From<WaybillBase>().Where(filter);
139
225
vartarget=Db.Select(q);
140
226
Assert.AreEqual(3,target.Count);
141
227
}
142
228
143
229
[Test]
144
230
publicvoidCan_Where_using_constant_filter7()
145
231
{
146
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"||x.VirtProperty2=="Any";
147
-
varq=Db.From<Waybill>().Where(filter);
232
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"||x.VirtProperty2=="Any";
233
+
varq=Db.From<WaybillBase>().Where(filter);
148
234
vartarget=Db.Select(q);
149
235
Assert.AreEqual(3,target.Count);
150
236
}
151
237
152
238
[Test]
153
239
publicvoidCan_Where_using_constant_filter8()
154
240
{
155
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"&&x.VirtProperty2=="Any";
156
-
varq=Db.From<Waybill>().Where(filter);
241
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.VirtProperty=="WaybillVirtPropertyValue"&&x.VirtProperty2=="Any";
242
+
varq=Db.From<WaybillBase>().Where(filter);
157
243
vartarget=Db.Select(q);
158
244
Assert.AreEqual(0,target.Count);
159
245
}
160
246
161
247
[Test]
162
248
publicvoidCan_Where_using_constant_filter9()
163
249
{
164
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.BoolVirtProperty;
165
-
varq=Db.From<Waybill>().Where(filter);
250
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.BoolVirtProperty;
251
+
varq=Db.From<WaybillBase>().Where(filter);
166
252
vartarget=Db.Select(q);
167
253
Assert.AreEqual(0,target.Count);
168
254
}
169
255
170
256
[Test]
171
257
publicvoidCan_Where_using_constant_filter10()
172
258
{
173
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>!x.BoolVirtProperty;
174
-
varq=Db.From<Waybill>().Where(filter);
259
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>!x.BoolVirtProperty;
260
+
varq=Db.From<WaybillBase>().Where(filter);
175
261
vartarget=Db.Select(q);
176
262
Assert.AreEqual(3,target.Count);
177
263
}
178
264
179
265
[Test]
180
266
publicvoidCan_Where_using_constant_filter11()
181
267
{
182
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.BoolVirtProperty&&x.VirtProperty=="WaybillVirtPropertyValue";
183
-
varq=Db.From<Waybill>().Where(filter);
268
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.BoolVirtProperty&&x.VirtProperty=="WaybillVirtPropertyValue";
269
+
varq=Db.From<WaybillBase>().Where(filter);
184
270
vartarget=Db.Select(q);
185
271
Assert.AreEqual(0,target.Count);
186
272
}
187
273
188
274
[Test]
189
275
publicvoidCan_Where_using_constant_filter12()
190
276
{
191
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>!x.BoolVirtProperty||x.VirtProperty=="WaybillVirtPropertyValue";
192
-
varq=Db.From<Waybill>().Where(filter);
277
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>!x.BoolVirtProperty||x.VirtProperty=="WaybillVirtPropertyValue";
278
+
varq=Db.From<WaybillBase>().Where(filter);
193
279
vartarget=Db.Select(q);
194
280
Assert.AreEqual(3,target.Count);
195
281
}
196
282
197
283
[Test]
198
284
publicvoidCan_Where_using_constant_filter13()
199
285
{
200
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>!x.BoolVirtProperty&&
286
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>!x.BoolVirtProperty&&
201
287
x.VirtProperty=="WaybillVirtPropertyValue"&&
202
288
x.Number==100;
203
-
varq=Db.From<Waybill>().Where(filter);
289
+
varq=Db.From<WaybillBase>().Where(filter);
204
290
vartarget=Db.Select(q);
205
291
Assert.AreEqual(1,target.Count);
206
292
}
207
293
208
294
[Test]
209
295
publicvoidCan_Where_using_constant_filter14()
210
296
{
211
-
System.Linq.Expressions.Expression<Func<Waybill,bool>>filter= x =>x.Number==100&&
297
+
System.Linq.Expressions.Expression<Func<WaybillBase,bool>>filter= x =>x.Number==100&&
0 commit comments