Portoa
Password protector that allows nulls
Password protector that hashes the password using a salt, and stores it
as a hex-encoded string
Represents an object that has a password associated with it
Verifies the legitimacy of a potential password
The password to verify
Changes the object's password to the new password
The new password
Verifies the given password.
Returns false if is null or empty
The salt used to hash the password as a hex-encoded string
The password as a hex-encoded string
Gets whether or not the password has been set
Determines if the entity has already been persisted
Converts an entity to its DTO representation. If the entity does not implement
, then an empty object
is returned.
The type to map the entity to
Iterates over the and adds each item
to the collection
Represents a domain object that can be persisted by a repository
The entity type
The entity's identifier type
Represents an objec that is uniquely identifiable
The identifier type
The unique identifier of this object
Implodes an enumeration given a selector function and a separator
Performs the specified action on each item in the collection. The action will execute immediately.
Use WalkDeferred if deferred execution is needed.
Performs the specified action on each item in the collection. The action will not execute until the collection
is enumerated. Use Walk if deferred execution is not needed.
Indicates that marked element should be localized or not.
Initializes a new instance of the class.
true if a element should be localized; otherwise, false.
Returns whether the value of the given object is equal to the current .
The object to test the value equality of.
true if the value of the given object is equal to that of the current; otherwise, false.
Returns the hash code for this instance.
A hash code for the current .
Gets a value indicating whether a element should be localized.
true if a element should be localized; otherwise, false.
Indicates that marked method builds string by format pattern and (optional) arguments.
Parameter, which contains format string, should be given in constructor.
The format string should be in -like form
Initializes new instance of StringFormatMethodAttribute
Specifies which parameter of an annotated method should be treated as format-string
Gets format parameter name
Indicates that the function argument should be string literal and match one of the parameters of the caller function.
For example, has such parameter.
Indicates that the marked method is assertion method, i.e. it halts control flow if one of the conditions is satisfied.
To set the condition, mark one of the parameters with attribute
Indicates the condition parameter of the assertion method.
The method itself should be marked by attribute.
The mandatory argument of the attribute is the assertion type.
Initializes new instance of AssertionConditionAttribute
Specifies condition type
Gets condition type
Specifies assertion type. If the assertion method argument satisifes the condition, then the execution continues.
Otherwise, execution is assumed to be halted
Indicates that the marked parameter should be evaluated to true
Indicates that the marked parameter should be evaluated to false
Indicates that the marked parameter should be evaluated to null value
Indicates that the marked parameter should be evaluated to not null value
Indicates that the marked method unconditionally terminates control flow execution.
For example, it could unconditionally throw exception
Indicates that the value of marked element could be null sometimes, so the check for null is necessary before its usage
Indicates that the value of marked element could never be null
Indicates that the value of marked type (or its derivatives) cannot be compared using '==' or '!=' operators.
There is only exception to compare with null, it is permitted
When applied to target attribute, specifies a requirement for any type which is marked with
target attribute to implement or inherit specific type or types
[BaseTypeRequired(typeof(IComponent)] // Specify requirement
public class ComponentAttribute : Attribute
{}
[Component] // ComponentAttribute requires implementing IComponent interface
public class MyComponent : IComponent
{}
Initializes new instance of BaseTypeRequiredAttribute
Specifies which types are required
Gets enumerations of specified base types
Indicates that the marked symbol is used implicitly (e.g. via reflection, in external library),
so this symbol will not be marked as unused (as well as by other usage inspections)
Gets value indicating what is meant to be used
Should be used on attributes and causes ReSharper to not mark symbols marked with such attributes as unused (as well as by other usage inspections)
Gets value indicating what is meant to be used
Only entity marked with attribute considered used
Indicates implicit assignment to a member
Indicates implicit instantiation of a type
Specify what is considered used implicitly when marked with or
Members of entity marked with attribute are considered used
Entity marked with attribute and all its members considered used
Empty implementation of
Exposes an interface for logging
Logs a debug message
Logs an informational message
Logs a warning message
Logs an error message
Gets whether or not Debug messages should be logged
Gets whether or not Info messages should be logged
Gets whether or not Warn messages should be logged
Gets whether or not Error messages should be logged
Logs the specified message
The message to log
Computes the hash of the string using the given
salt and UTF8 Encoding
Base-64 encodes the byte array
Converts a byte array to a hex-encoded string
Default password protector that does not allow null or empty passwords
Exposes an interface to map an entity to a DTO representation
The DTO to map to
Returns a DTO representation of this object
Validates that the value is greater than zero
Gets a human-readable string representing the given type
Whether to use the fully qualified name of each type
implementation that writes to the Console
Represents a transaction
Starts a transaction
If a transaction has already been started
Commits a transaction
If a transaction has not been started
Rolls back a transaction
If a transaction has not been started
Gets whether or not the transaction is currently active
Drops the temp database and resets the generated database name
Creates a temporary database with a unique name
Executes a SQL script on the test database
Gets the connection string for the fake database
Sets the default connection string (do not include the initial catalog)
Provides a CRUD interface to a persistence medium for entities that have an
integral identifier
The entity's type
Provides a CRUD interface to a persistence medium
The entity's type
The entity identifier's type
Persists an entity (inserts or updates)
The entity to save
Reloads an entity from the persistence medium
The entity to reload
Deletes an entity
The unique identifier of the entity to delete
Finds an entity by its unique identifier
The unique identifier of the entity to locate
Equivalent of "select *"
Raised when an entity was not found
Raised when an error occurred in the persistence layer
Raised when an entity was not found
The entity type
The entity's identifier type
implementation that writes using system diagnostic tool
Signifies that this method should be executed within a transaction
Logs a formatted Debug message
Logs a formatted Info message
Logs a formatted Warn message
Logs an exception using
TODO: add reflection cache
Extension to System.ComponentModel.DataAnnotations.Validator.TryValidateObject(). This method validates
the object, its properties and its fields.
Converts a Unix timestamp to a
Converts a to a Unix timestamp (number of seconds since
1970-01-01)
Represents a service object that can start a transaction
Begins a transaction and returns the resultant
Validates that a string is a valid email address. Set AllowEmpty to true
if null and empty strings should not be validated.
Gets or sets whether to allow empty strings
Determines if this object should be logged
Signifies that this object should not be logged
Convenience class for data transfer objects that have an integral
identifier