Common.Customizer/VI.Common.Customizer/DialogTableGroupRight.cs
Decompiler Source FileCommon.Customizer.DialogTableGroupRightDecompiled Source
Interpretation
- Decompiled source file. Use method/event registrations and call-site extraction to connect back to DialogMethod, QBMEvent, and API layers.
Relations
- Method registration: Check at line 510
- Method registration: Check at line 527
Typed Edges
- No typed edges extracted for this source.
References
- No direct source references extracted.
Referenced By
- No direct source references extracted.
C# source-derived context
Generated by pattern extraction from the decompiled C# source and decompile index. This is factual source evidence, not inferred behavior.
reads entity values references DB/Dialog objects
Summary: classes DialogTableGroupRight, _003C_003Ec__DisplayClass1_0; methods MoveNext, SetStateMachine, _003C_002Ector_003Eb__3, _003C_002Ector_003Eb__4, OnSavingAsync, _CheckWhereClauseAsync; references DialogTable, DialogTableGroupRight; markers reads entity values, references DB/Dialog objects
Classes
DialogTableGroupRight _003C_003Ec__DisplayClass1_0Methods
DB/Dialog object references
OIM key/entity markers
UID_DialogTableAPI/entity calls
GetValueAsync ExistsAsync TryResult FromRegistrations / handlers
None extracted.
Complete Source
1using System;2using System.Diagnostics;3using System.Runtime.CompilerServices;4using System.Runtime.InteropServices;5using System.Threading;6using System.Threading.Tasks;7using VI.Base;8using VI.DB;9using VI.DB.Entities;1011namespace VI.Common.Customizer;1213public class DialogTableGroupRight : CommonLogicBase14{15 [CompilerGenerated]16 private sealed class _003C_003Ec__DisplayClass1_017 {18 [StructLayout((LayoutKind)3)]19 private struct _003C_003C_002Dctor_003Eb__3_003Ed : IAsyncStateMachine20 {21 public int _003C_003E1__state;2223 public AsyncTaskMethodBuilder _003C_003Et__builder;2425 public ISession runOnSession;2627 public IEntity e;2829 public ISession s;3031 public CancellationToken ct;3233 public _003C_003Ec__DisplayClass1_0 _003C_003E4__this;3435 private ConfiguredValueTaskAwaiter<string> _003C_003Eu__1;3637 private ConfiguredTaskAwaiter _003C_003Eu__2;3839 private void MoveNext()40 {41 //IL_008e: Unknown result type (might be due to invalid IL or missing references)42 //IL_0093: Unknown result type (might be due to invalid IL or missing references)43 //IL_009a: Unknown result type (might be due to invalid IL or missing references)44 //IL_00d5: Unknown result type (might be due to invalid IL or missing references)45 //IL_00e0: Unknown result type (might be due to invalid IL or missing references)46 //IL_00e5: Unknown result type (might be due to invalid IL or missing references)47 //IL_00e9: Unknown result type (might be due to invalid IL or missing references)48 //IL_00ee: Unknown result type (might be due to invalid IL or missing references)49 //IL_011b: Unknown result type (might be due to invalid IL or missing references)50 //IL_0120: Unknown result type (might be due to invalid IL or missing references)51 //IL_0128: Unknown result type (might be due to invalid IL or missing references)52 //IL_0103: Unknown result type (might be due to invalid IL or missing references)53 //IL_0105: Unknown result type (might be due to invalid IL or missing references)54 //IL_0043: Unknown result type (might be due to invalid IL or missing references)55 //IL_0052: Unknown result type (might be due to invalid IL or missing references)56 //IL_0057: Unknown result type (might be due to invalid IL or missing references)57 //IL_005b: Unknown result type (might be due to invalid IL or missing references)58 //IL_0060: Unknown result type (might be due to invalid IL or missing references)59 //IL_0025: Unknown result type (might be due to invalid IL or missing references)60 //IL_0074: Unknown result type (might be due to invalid IL or missing references)61 //IL_0075: Unknown result type (might be due to invalid IL or missing references)62 int num = _003C_003E1__state;63 _003C_003Ec__DisplayClass1_0 _003C_003Ec__DisplayClass1_ = _003C_003E4__this;64 try65 {66 ConfiguredTaskAwaiter val;67 ConfiguredValueTaskAwaiter<string> val2;68 if (num != 0)69 {70 if (num == 1)71 {72 val = _003C_003Eu__2;73 _003C_003Eu__2 = default(ConfiguredTaskAwaiter);74 num = (_003C_003E1__state = -1);75 goto IL_0137;76 }77 if (runOnSession == null)78 {79 throw new ArgumentNullException("runOnSession");80 }81 val2 = e.CreateWalker(s).GetValueAsync<string>("FK(UID_DialogTable).Tablename", ct).ConfigureAwait(false)82 .GetAwaiter();83 if (!val2.IsCompleted)84 {85 num = (_003C_003E1__state = 0);86 _003C_003Eu__1 = val2;87 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter<string>, _003C_003C_002Dctor_003Eb__3_003Ed>(ref val2, ref this);88 return;89 }90 }91 else92 {93 val2 = _003C_003Eu__1;94 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter<string>);95 num = (_003C_003E1__state = -1);96 }97 string result = val2.GetResult();98 ConfiguredTaskAwaitable val3 = _CheckWhereClauseAsync(runOnSession.Source(), e, s.Variables, result, _003C_003Ec__DisplayClass1_.column, ct).ConfigureAwait(false);99 val = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();100 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)101 {102 num = (_003C_003E1__state = 1);103 _003C_003Eu__2 = val;104 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003C_003C_002Dctor_003Eb__3_003Ed>(ref val, ref this);105 return;106 }107 goto IL_0137;108 IL_0137:109 ((ConfiguredTaskAwaiter)(ref val)).GetResult();110 }111 catch (System.Exception exception)112 {113 _003C_003E1__state = -2;114 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);115 return;116 }117 _003C_003E1__state = -2;118 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();119 }120121 [DebuggerHidden]122 private void SetStateMachine(IAsyncStateMachine stateMachine)123 {124 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);125 }126 }127128 [StructLayout((LayoutKind)3)]129 private struct _003C_003C_002Dctor_003Eb__4_003Ed : IAsyncStateMachine130 {131 public int _003C_003E1__state;132133 public AsyncTaskMethodBuilder _003C_003Et__builder;134135 public IEntity e;136137 public ISession s;138139 public CancellationToken ct;140141 public _003C_003Ec__DisplayClass1_0 _003C_003E4__this;142143 private ConfiguredValueTaskAwaiter<string> _003C_003Eu__1;144145 private ConfiguredTaskAwaiter _003C_003Eu__2;146147 private void MoveNext()148 {149 //IL_007b: Unknown result type (might be due to invalid IL or missing references)150 //IL_0080: Unknown result type (might be due to invalid IL or missing references)151 //IL_0087: Unknown result type (might be due to invalid IL or missing references)152 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)153 //IL_00cd: Unknown result type (might be due to invalid IL or missing references)154 //IL_00d2: Unknown result type (might be due to invalid IL or missing references)155 //IL_00d6: Unknown result type (might be due to invalid IL or missing references)156 //IL_00db: Unknown result type (might be due to invalid IL or missing references)157 //IL_0108: Unknown result type (might be due to invalid IL or missing references)158 //IL_010d: Unknown result type (might be due to invalid IL or missing references)159 //IL_0115: Unknown result type (might be due to invalid IL or missing references)160 //IL_0030: Unknown result type (might be due to invalid IL or missing references)161 //IL_003f: Unknown result type (might be due to invalid IL or missing references)162 //IL_0044: Unknown result type (might be due to invalid IL or missing references)163 //IL_0048: Unknown result type (might be due to invalid IL or missing references)164 //IL_004d: Unknown result type (might be due to invalid IL or missing references)165 //IL_00f0: Unknown result type (might be due to invalid IL or missing references)166 //IL_00f2: Unknown result type (might be due to invalid IL or missing references)167 //IL_0061: Unknown result type (might be due to invalid IL or missing references)168 //IL_0062: Unknown result type (might be due to invalid IL or missing references)169 int num = _003C_003E1__state;170 _003C_003Ec__DisplayClass1_0 _003C_003Ec__DisplayClass1_ = _003C_003E4__this;171 try172 {173 ConfiguredTaskAwaiter val;174 ConfiguredValueTaskAwaiter<string> val2;175 if (num != 0)176 {177 if (num == 1)178 {179 val = _003C_003Eu__2;180 _003C_003Eu__2 = default(ConfiguredTaskAwaiter);181 num = (_003C_003E1__state = -1);182 goto IL_0124;183 }184 val2 = e.CreateWalker(s).GetValueAsync<string>("FK(UID_DialogTable).Tablename", ct).ConfigureAwait(false)185 .GetAwaiter();186 if (!val2.IsCompleted)187 {188 num = (_003C_003E1__state = 0);189 _003C_003Eu__1 = val2;190 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter<string>, _003C_003C_002Dctor_003Eb__4_003Ed>(ref val2, ref this);191 return;192 }193 }194 else195 {196 val2 = _003C_003Eu__1;197 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter<string>);198 num = (_003C_003E1__state = -1);199 }200 string result = val2.GetResult();201 ConfiguredTaskAwaitable val3 = _CheckWhereClauseAsync(s.Source(), e, s.Variables, result, _003C_003Ec__DisplayClass1_.column, ct).ConfigureAwait(false);202 val = ((ConfiguredTaskAwaitable)(ref val3)).GetAwaiter();203 if (!((ConfiguredTaskAwaiter)(ref val)).IsCompleted)204 {205 num = (_003C_003E1__state = 1);206 _003C_003Eu__2 = val;207 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter, _003C_003C_002Dctor_003Eb__4_003Ed>(ref val, ref this);208 return;209 }210 goto IL_0124;211 IL_0124:212 ((ConfiguredTaskAwaiter)(ref val)).GetResult();213 }214 catch (System.Exception exception)215 {216 _003C_003E1__state = -2;217 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);218 return;219 }220 _003C_003E1__state = -2;221 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();222 }223224 [DebuggerHidden]225 private void SetStateMachine(IAsyncStateMachine stateMachine)226 {227 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);228 }229 }230231 public string column;232233 [AsyncStateMachine(typeof(_003C_003C_002Dctor_003Eb__3_003Ed))]234 internal System.Threading.Tasks.Task _003C_002Ector_003Eb__3(ISession s, IEntity e, ISession runOnSession, CancellationToken ct)235 {236 //IL_0002: Unknown result type (might be due to invalid IL or missing references)237 //IL_0007: Unknown result type (might be due to invalid IL or missing references)238 //IL_002e: Unknown result type (might be due to invalid IL or missing references)239 //IL_0030: Unknown result type (might be due to invalid IL or missing references)240 _003C_003C_002Dctor_003Eb__3_003Ed _003C_003C_002Dctor_003Eb__3_003Ed = default(_003C_003C_002Dctor_003Eb__3_003Ed);241 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();242 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003E4__this = this;243 _003C_003C_002Dctor_003Eb__3_003Ed.s = s;244 _003C_003C_002Dctor_003Eb__3_003Ed.e = e;245 _003C_003C_002Dctor_003Eb__3_003Ed.runOnSession = runOnSession;246 _003C_003C_002Dctor_003Eb__3_003Ed.ct = ct;247 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003E1__state = -1;248 ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder)).Start<_003C_003C_002Dctor_003Eb__3_003Ed>(ref _003C_003C_002Dctor_003Eb__3_003Ed);249 return ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder)).Task;250 }251252 [AsyncStateMachine(typeof(_003C_003C_002Dctor_003Eb__4_003Ed))]253 internal System.Threading.Tasks.Task _003C_002Ector_003Eb__4(ISession s, IEntity e, CancellationToken ct)254 {255 //IL_0002: Unknown result type (might be due to invalid IL or missing references)256 //IL_0007: Unknown result type (might be due to invalid IL or missing references)257 //IL_0026: Unknown result type (might be due to invalid IL or missing references)258 //IL_0027: Unknown result type (might be due to invalid IL or missing references)259 _003C_003C_002Dctor_003Eb__4_003Ed _003C_003C_002Dctor_003Eb__4_003Ed = default(_003C_003C_002Dctor_003Eb__4_003Ed);260 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();261 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003E4__this = this;262 _003C_003C_002Dctor_003Eb__4_003Ed.s = s;263 _003C_003C_002Dctor_003Eb__4_003Ed.e = e;264 _003C_003C_002Dctor_003Eb__4_003Ed.ct = ct;265 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003E1__state = -1;266 ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder)).Start<_003C_003C_002Dctor_003Eb__4_003Ed>(ref _003C_003C_002Dctor_003Eb__4_003Ed);267 return ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder)).Task;268 }269 }270271 [StructLayout((LayoutKind)3)]272 [CompilerGenerated]273 private struct _003COnSavingAsync_003Ed__2 : IAsyncStateMachine274 {275 public int _003C_003E1__state;276277 public AsyncTaskMethodBuilder<Diff> _003C_003Et__builder;278279 public LogicReadWriteParameters parameters;280281 public IEntity entity;282283 public CancellationToken ct;284285 public DialogTableGroupRight _003C_003E4__this;286287 private Diff _003CcleanDiff_003E5__2;288289 private ConfiguredTaskAwaiter<Diff> _003C_003Eu__1;290291 private void MoveNext()292 {293 //IL_0078: Unknown result type (might be due to invalid IL or missing references)294 //IL_007d: Unknown result type (might be due to invalid IL or missing references)295 //IL_0085: Unknown result type (might be due to invalid IL or missing references)296 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)297 //IL_00be: Unknown result type (might be due to invalid IL or missing references)298 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)299 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)300 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)301 //IL_00f9: Unknown result type (might be due to invalid IL or missing references)302 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)303 //IL_0106: Unknown result type (might be due to invalid IL or missing references)304 //IL_002f: Unknown result type (might be due to invalid IL or missing references)305 //IL_003a: Unknown result type (might be due to invalid IL or missing references)306 //IL_003f: Unknown result type (might be due to invalid IL or missing references)307 //IL_0043: Unknown result type (might be due to invalid IL or missing references)308 //IL_0048: Unknown result type (might be due to invalid IL or missing references)309 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)310 //IL_00e3: Unknown result type (might be due to invalid IL or missing references)311 //IL_005d: Unknown result type (might be due to invalid IL or missing references)312 //IL_005f: Unknown result type (might be due to invalid IL or missing references)313 int num = _003C_003E1__state;314 DialogTableGroupRight dialogTableGroupRight = _003C_003E4__this;315 Diff result3;316 try317 {318 ConfiguredTaskAwaiter<Diff> val;319 if (num != 0)320 {321 if (num == 1)322 {323 val = _003C_003Eu__1;324 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<Diff>);325 num = (_003C_003E1__state = -1);326 goto IL_0115;327 }328 val = CommonLogicBase.CleanWhereClausesAsync(parameters.Session, entity, _whereClauseColumns, ct).ConfigureAwait(false).GetAwaiter();329 if (!val.IsCompleted)330 {331 num = (_003C_003E1__state = 0);332 _003C_003Eu__1 = val;333 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<Diff>, _003COnSavingAsync_003Ed__2>(ref val, ref this);334 return;335 }336 }337 else338 {339 val = _003C_003Eu__1;340 _003C_003Eu__1 = default(ConfiguredTaskAwaiter<Diff>);341 num = (_003C_003E1__state = -1);342 }343 Diff result = val.GetResult();344 _003CcleanDiff_003E5__2 = result;345 val = ((EntityLogicBase)dialogTableGroupRight).OnSavingAsync(entity, parameters, ct).ConfigureAwait(false).GetAwaiter();346 if (!val.IsCompleted)347 {348 num = (_003C_003E1__state = 1);349 _003C_003Eu__1 = val;350 _003C_003Et__builder.AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<Diff>, _003COnSavingAsync_003Ed__2>(ref val, ref this);351 return;352 }353 goto IL_0115;354 IL_0115:355 Diff result2 = val.GetResult();356 result3 = _003CcleanDiff_003E5__2.Concat(result2);357 }358 catch (System.Exception exception)359 {360 _003C_003E1__state = -2;361 _003CcleanDiff_003E5__2 = null;362 _003C_003Et__builder.SetException(exception);363 return;364 }365 _003C_003E1__state = -2;366 _003CcleanDiff_003E5__2 = null;367 _003C_003Et__builder.SetResult(result3);368 }369370 [DebuggerHidden]371 private void SetStateMachine(IAsyncStateMachine stateMachine)372 {373 _003C_003Et__builder.SetStateMachine(stateMachine);374 }375 }376377 [StructLayout((LayoutKind)3)]378 [CompilerGenerated]379 private struct _003C_CheckWhereClauseAsync_003Ed__3 : IAsyncStateMachine380 {381 public int _003C_003E1__state;382383 public AsyncTaskMethodBuilder _003C_003Et__builder;384385 public IEntity entity;386387 public string whereClauseColumn;388389 public CancellationToken ct;390391 public IVarContext variables;392393 public string tablename;394395 public IEntitySource source;396397 private ConfiguredValueTaskAwaiter<string> _003C_003Eu__1;398399 private ConfiguredTaskAwaiter<bool> _003C_003Eu__2;400401 private void MoveNext()402 {403 //IL_006e: Unknown result type (might be due to invalid IL or missing references)404 //IL_0073: Unknown result type (might be due to invalid IL or missing references)405 //IL_007a: Unknown result type (might be due to invalid IL or missing references)406 //IL_0112: Unknown result type (might be due to invalid IL or missing references)407 //IL_0117: Unknown result type (might be due to invalid IL or missing references)408 //IL_011f: Unknown result type (might be due to invalid IL or missing references)409 //IL_0023: Unknown result type (might be due to invalid IL or missing references)410 //IL_0032: Unknown result type (might be due to invalid IL or missing references)411 //IL_0037: Unknown result type (might be due to invalid IL or missing references)412 //IL_003b: Unknown result type (might be due to invalid IL or missing references)413 //IL_0040: Unknown result type (might be due to invalid IL or missing references)414 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)415 //IL_00d7: Unknown result type (might be due to invalid IL or missing references)416 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)417 //IL_00e0: Unknown result type (might be due to invalid IL or missing references)418 //IL_00e5: Unknown result type (might be due to invalid IL or missing references)419 //IL_0054: Unknown result type (might be due to invalid IL or missing references)420 //IL_0055: Unknown result type (might be due to invalid IL or missing references)421 //IL_00fa: Unknown result type (might be due to invalid IL or missing references)422 //IL_00fc: Unknown result type (might be due to invalid IL or missing references)423 int num = _003C_003E1__state;424 try425 {426 _ = 1;427 try428 {429 ConfiguredTaskAwaiter<bool> val;430 ConfiguredValueTaskAwaiter<string> val2;431 if (num != 0)432 {433 if (num == 1)434 {435 val = _003C_003Eu__2;436 _003C_003Eu__2 = default(ConfiguredTaskAwaiter<bool>);437 num = (_003C_003E1__state = -1);438 goto IL_012e;439 }440 val2 = entity.GetValueAsync<string>(whereClauseColumn, ct).ConfigureAwait(false).GetAwaiter();441 if (!val2.IsCompleted)442 {443 num = (_003C_003E1__state = 0);444 _003C_003Eu__1 = val2;445 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredValueTaskAwaiter<string>, _003C_CheckWhereClauseAsync_003Ed__3>(ref val2, ref this);446 return;447 }448 }449 else450 {451 val2 = _003C_003Eu__1;452 _003C_003Eu__1 = default(ConfiguredValueTaskAwaiter<string>);453 num = (_003C_003E1__state = -1);454 }455 string result = val2.GetResult();456 if (!string.IsNullOrWhiteSpace(result))457 {458 result = variables.Replace(result);459 Query query = Query.From(tablename).Where(result).Exists();460 val = source.ExistsAsync(query, ct).ConfigureAwait(false).GetAwaiter();461 if (!val.IsCompleted)462 {463 num = (_003C_003E1__state = 1);464 _003C_003Eu__2 = val;465 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).AwaitUnsafeOnCompleted<ConfiguredTaskAwaiter<bool>, _003C_CheckWhereClauseAsync_003Ed__3>(ref val, ref this);466 return;467 }468 goto IL_012e;469 }470 goto end_IL_000c;471 IL_012e:472 val.GetResult();473 end_IL_000c:;474 }475 catch (System.Exception innerException)476 {477 throw new ViException(882000, ExceptionRelevance.EndUser, innerException, whereClauseColumn);478 }479 }480 catch (System.Exception exception)481 {482 _003C_003E1__state = -2;483 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetException(exception);484 return;485 }486 _003C_003E1__state = -2;487 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetResult();488 }489490 [DebuggerHidden]491 private void SetStateMachine(IAsyncStateMachine stateMachine)492 {493 ((AsyncTaskMethodBuilder)(ref _003C_003Et__builder)).SetStateMachine(stateMachine);494 }495 }496497 private static readonly string[] _whereClauseColumns = new string[4] { "SelectWhereClause", "UpdateWhereClause", "InsertWhereClause", "DeleteWhereClause" };498499 public DialogTableGroupRight()500 {501 Value("CanSee").From("CanEdit", "CanInsert", "CanDelete").As<bool, bool, bool, TryResult<bool>>((bool canEdit, bool canInsert, bool canDelete) => (!(canEdit || canInsert || canDelete)) ? TryResult<bool>.Failed : TryResult.FromResult(value: true));502 Value("CanEdit", "CanInsert", "CanDelete").From("CanSee").As<bool, TryResult<bool>>((bool canSee) => (!canSee) ? TryResult.FromResult(value: false) : TryResult<bool>.Failed);503 CanEdit("CanEdit", "CanInsert", "CanDelete", "UpdateWhereClause", "InsertWhereClause", "DeleteWhereClause").Except("SPECIAL(IsTransport)").From("FK(UID_DialogTable).TableType").As<string>((Func<string, bool>)((string tt) => !DialogTable.IsReadOnlyTableType(tt)))504 .ClearValueOnFalse();505 string[] whereClauseColumns = _whereClauseColumns;506 foreach (string text in whereClauseColumns)507 {508 _003C_003Ec__DisplayClass1_0 CS_0024_003C_003E8__locals3 = new _003C_003Ec__DisplayClass1_0();509 CS_0024_003C_003E8__locals3.column = text;510 RegisterMethod("Check" + text).As<ISession>([AsyncStateMachine(typeof(_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__3_003Ed))] (ISession s, IEntity e, ISession runOnSession, CancellationToken ct) =>511 {512 //IL_0002: Unknown result type (might be due to invalid IL or missing references)513 //IL_0007: Unknown result type (might be due to invalid IL or missing references)514 //IL_002e: Unknown result type (might be due to invalid IL or missing references)515 //IL_0030: Unknown result type (might be due to invalid IL or missing references)516 _003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__3_003Ed _003C_003C_002Dctor_003Eb__3_003Ed = default(_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__3_003Ed);517 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();518 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003E4__this = CS_0024_003C_003E8__locals3;519 _003C_003C_002Dctor_003Eb__3_003Ed.s = s;520 _003C_003C_002Dctor_003Eb__3_003Ed.e = e;521 _003C_003C_002Dctor_003Eb__3_003Ed.runOnSession = runOnSession;522 _003C_003C_002Dctor_003Eb__3_003Ed.ct = ct;523 _003C_003C_002Dctor_003Eb__3_003Ed._003C_003E1__state = -1;524 ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder)).Start<_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__3_003Ed>(ref _003C_003C_002Dctor_003Eb__3_003Ed);525 return ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__3_003Ed._003C_003Et__builder)).Task;526 }).Behavior(MethodBehavior.ValidForReadOnlyUser);527 RegisterMethod("Check" + text).As([AsyncStateMachine(typeof(_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__4_003Ed))] (ISession s, IEntity e, CancellationToken ct) =>528 {529 //IL_0002: Unknown result type (might be due to invalid IL or missing references)530 //IL_0007: Unknown result type (might be due to invalid IL or missing references)531 //IL_0026: Unknown result type (might be due to invalid IL or missing references)532 //IL_0027: Unknown result type (might be due to invalid IL or missing references)533 _003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__4_003Ed _003C_003C_002Dctor_003Eb__4_003Ed = default(_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__4_003Ed);534 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder = AsyncTaskMethodBuilder.Create();535 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003E4__this = CS_0024_003C_003E8__locals3;536 _003C_003C_002Dctor_003Eb__4_003Ed.s = s;537 _003C_003C_002Dctor_003Eb__4_003Ed.e = e;538 _003C_003C_002Dctor_003Eb__4_003Ed.ct = ct;539 _003C_003C_002Dctor_003Eb__4_003Ed._003C_003E1__state = -1;540 ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder)).Start<_003C_003Ec__DisplayClass1_0._003C_003C_002Dctor_003Eb__4_003Ed>(ref _003C_003C_002Dctor_003Eb__4_003Ed);541 return ((AsyncTaskMethodBuilder)(ref _003C_003C_002Dctor_003Eb__4_003Ed._003C_003Et__builder)).Task;542 }).Behavior(MethodBehavior.ValidForReadOnlyUser);543 }544 }545546 [AsyncStateMachine(typeof(_003COnSavingAsync_003Ed__2))]547 public override async System.Threading.Tasks.Task<Diff> OnSavingAsync(IEntity entity, LogicReadWriteParameters parameters, CancellationToken ct)548 {549 //IL_0002: Unknown result type (might be due to invalid IL or missing references)550 //IL_0007: Unknown result type (might be due to invalid IL or missing references)551 //IL_0026: Unknown result type (might be due to invalid IL or missing references)552 //IL_0027: Unknown result type (might be due to invalid IL or missing references)553 return (await CommonLogicBase.CleanWhereClausesAsync(parameters.Session, entity, _whereClauseColumns, ct).ConfigureAwait(false)).Concat(await base.OnSavingAsync(entity, parameters, ct).ConfigureAwait(false));554 }555556 [AsyncStateMachine(typeof(_003C_CheckWhereClauseAsync_003Ed__3))]557 private static System.Threading.Tasks.Task _CheckWhereClauseAsync(IEntitySource source, IEntity entity, IVarContext variables, string tablename, string whereClauseColumn, CancellationToken ct)558 {559 //IL_0002: Unknown result type (might be due to invalid IL or missing references)560 //IL_0007: Unknown result type (might be due to invalid IL or missing references)561 //IL_0037: Unknown result type (might be due to invalid IL or missing references)562 //IL_0039: Unknown result type (might be due to invalid IL or missing references)563 _003C_CheckWhereClauseAsync_003Ed__3 _003C_CheckWhereClauseAsync_003Ed__ = default(_003C_CheckWhereClauseAsync_003Ed__3);564 _003C_CheckWhereClauseAsync_003Ed__._003C_003Et__builder = AsyncTaskMethodBuilder.Create();565 _003C_CheckWhereClauseAsync_003Ed__.source = source;566 _003C_CheckWhereClauseAsync_003Ed__.entity = entity;567 _003C_CheckWhereClauseAsync_003Ed__.variables = variables;568 _003C_CheckWhereClauseAsync_003Ed__.tablename = tablename;569 _003C_CheckWhereClauseAsync_003Ed__.whereClauseColumn = whereClauseColumn;570 _003C_CheckWhereClauseAsync_003Ed__.ct = ct;571 _003C_CheckWhereClauseAsync_003Ed__._003C_003E1__state = -1;572 ((AsyncTaskMethodBuilder)(ref _003C_CheckWhereClauseAsync_003Ed__._003C_003Et__builder)).Start<_003C_CheckWhereClauseAsync_003Ed__3>(ref _003C_CheckWhereClauseAsync_003Ed__);573 return ((AsyncTaskMethodBuilder)(ref _003C_CheckWhereClauseAsync_003Ed__._003C_003Et__builder)).Task;574 }575}576