Home

Package Details

  • Development on .NET Standard 2.0.
  • For Support Framework Click Here
  • Contains ImageUtil, Validator, ConfigurationUtil, CommonUtil, TableUtil, Encrypt & Decrypt Util Classes.

Utilities Description

  • Configuration Utility

    This Utility Uses you Web.Config AppSettings to get Key Value, Create File with Folder, etc,.

Function Params Output Type Description
FilePath FileName: String String Get File Path with File from Bin Folder.
GetAppSettings Key: String String Get the Value from App Setting By Key.
FilePathByKey Key: String String Get the Value from App Setting By Key and Get File Path
ExportPath Key: String String Get the Value from App Setting By Key and Create File Path
  • Common Utility
Function Params Output Type Description
RemoveSpecialCharacters str: String String Remove Special Characters from String.
IsContains str: String, contains: String Boolean Check Str Exist on given String
ConfigureLogging None Void Configure Log4Net File
  • Image Utility
Function Params Output Type Description
ConvertByteArrayToString byte: Byte[] String Convert Byte Array to String.
GetBytesFrmImgStr str: String Byte[] Get Bytes from Image String.
FixBase64ForImage str: String String Fix Base64 For Image.
  • Validator Utility
Function Params Output Type Description
IsValid dt:DataTable Boolean Check Is DataTable Valid.
IsValid ds:DataSet Boolean Check Is Data Set Valid.
IsValid dv:DataView Boolean Check Is Data View Valid.
IsValid ds:DataSet, TableIndex:Int Boolean Check Data Set IsValid with Table Index.
IsValid value:Int Boolean Check Number Is Valid.
IsValid value:string Boolean Check Is String Valid.
IsDecimal value:string Boolean Check Is Value Decimal Valid.
IsNumeric value:string Boolean Check Number IsNumeric.
  • Table Utility
Function Params Output Type Description
SortDataTable src:dt, IsDesc:bool, OrderbyColumns: String DataTable Sort the DataTable Based on Order By Columns and IsDesc
ImportDataTable src:Dt, desc:Dt DataTable Import Data Table From Source to Destination
ConvertToDatatable data:List DataTable Convert List to DataTable
ConvertToDatatable data:IList DataTable Convert IList to DataTable
ConvertToDatatable data:List[String] DataTable Convert List of String to DataTable
ConvertToDatatable Obj:Object DataTable Convert Object to DataTable
GetColumnValueInDataTable src:Dt, PrimaryColName & Value, ColName : String String Get Column Value In Data Table based on Primary ColName & its Value
UpdateColumnValueInDataTable src:Dt, PrimaryColName & Value, UpdColName & Value : String String Update Column Value In Data Table based on Primary ColName & its Value with UpdColName.
HasNull src:DataTable Boolean Check Table Columns has Null.
  • Encryption & Decryption Utility

    Required to Set App Setting With Name Enc_Key For Encryption Key MaxLength of 24 Characters.

Function Params Output Type Description
GetKey value:Int Byte[] Get Key based on Value Key
AESEncryption PlainText: String String Generated CipherText Based on AES Algorithm
AESDecryption CipherText: String String Convert CipherText to PlainText based on AES Algorithm
TDESEncryption PlainText: String String Generated CipherText Based on Triple DES Algorithm
TDESDecryption CipherText: String String Convert CipherText to PlainText based on Triple DES Algorithm