Collection of methods, classes and helpers to simplify recurring standard actions
Extension to http, ftp and email functionality
- Ftp
- FtpClient based on System.Net.WebRequest (Type: "System.Net.WebRequest");
- SftpClient based on SSH.NET (Type: "SSH.NET.FTP")
- Http
- HttpClient based on System.Net.Http.HttpClient
- Email
- MailClient based on System.Net.Mail.SmtpClient
Extension to define and configure dynamic fields that are not hard-coded in a C# class.
Extension for validation of dynamic fields configured rules
- Uses core.dynamic.fields
- Validating an object instance
- Creating a set of validation rules based on dynamic fields
Extension to encapsulate i/o actions
- Archive engine
- Zip archive (System.IO.Compression.ZipFile)
- File system engine
Extension for dynamic creation of filter and sort queries based on IQueryable
- WhereQueryEngine
- SortingQueryEngine
Extension for transformation of expression tree from one data type to an other data type
- TransformQueryEngine
- TransformProfile
public IEnumerable<Target> ReadSomething(Expression<Func<Source, bool>> sourcExpression)
{
var targetData = new List<Target>();
var engine = new TransformQueryEngine();
var targetExpression = engine.Transform<Source, Target>(sourcExpression);
var result = targetData
.Where(targetExpression.Compile())
.ToList()
;
return result;
}
public enum CustomTransformProfile : TransformProfile
{
public CustomTransformProfile()
{
CreateMap<Source, Target>()
.ForPath(s => s.SourceId, t => t.TargetId)
;
}
}
Extension to collect logging information
- Exception logging (Microsoft.Extensions.Logging.Abstractions)
- Data record property modifications
Extension to secure data worthy of protection
- Checksum
- Fletcher's checksum
- Cryptography
- Rijndael engine (symmetric)
- Hash
- Password engine
Extension to execute ms sql database actions
- create and drop login
- create and drop database
- backup and restore database
- add user to database
- drop user from database
Extension to execute microsoft sql database actions
- depends on Eshava.Core.Storage
Extension for validation of objects based on default annotation attributes and additional custom annotation attributes
- Uses System.ComponentModel.DataAnnotations
- Validating an object instance
- Creating a set of validation rules based on a class
- view on https://draw.io/