9using System.Collections.Generic;
19 private string _auth =
"No value";
21 #region "Get/Set Private Variables"
45 #region "Criteria class"
62 public Criteria(
string data)
78 private void DataPortal_Create(
object criteria)
80 Criteria crit = (Criteria)(criteria);
81 using (BypassPropertyChecks)
87 Criteria crit = (Criteria)(criteria);
88 using (BypassPropertyChecks)
129 #region "Authorization Rules"
133 string role =
"Admin";
150 if (CanReadProperty(
"DenyReadOnProperty"))
155 return "[DenyReadOnProperty] Can't read property";
174 if (CanWriteProperty(
"DenyWriteOnProperty"))
178 _auth =
"[DenyWriteOnProperty] Can't write variable";
188 if (CanReadProperty(
"DenyReadWriteOnProperty"))
189 return "Not allowed 3";
192 return "[DenyReadWriteOnProperty] Can't read property";
196 if (CanWriteProperty(
"DenyReadWriteOnProperty"))
200 _auth =
"[DenyReadWriteOnProperty] Can't write variable";
209 if (CanReadProperty(
"AllowReadWriteOnProperty"))
213 return "Should be allowed 5";
217 if (CanWriteProperty(
"AllowReadWriteOnProperty"))
Provides consistent context information between the client and server DataPortal objects.
IContextManager ContextManager
Gets the context manager responsible for storing user and context information for the application.
This is the base class from which most business objects will be derived.
T Clone()
Creates a clone of the object.
Base type from which Criteria classes can be derived in a business class.
Provides information about the DataPortal call.
Maintains metadata about a property.
IsInRole authorization rule.
IsNotInRole authorization rule.
static PropertyInfo< string > DataProperty
string DenyReadWriteOnProperty
string AllowReadWriteOnProperty
void DataPortal_Fetch(object criteria)
static PropertyInfo< string > AllowReadWriteOnPropertyProperty
static PropertyInfo< string > DenyReadOnPropertyProperty
string DenyWriteOnProperty
override void AddBusinessRules()
void DataPortal_Delete(object criteria)
static PropertyInfo< string > DenyWriteOnPropertyProperty
void DataPortal_DeleteSelf()
override void DataPortal_OnDataPortalInvoke(DataPortalEventArgs e)
string DenyReadOnProperty
static PropertyInfo< string > DenyReadWriteOnPropertyProperty
override void DataPortal_OnDataPortalInvokeComplete(DataPortalEventArgs e)
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
static void Add(string key, string value)
Add an item to the test results, to indicate an outcome of a particular operation
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Update
Update operation (includes insert, update and delete self).
@ Delete
Delete operation.