JamesHelper 1.0.1

dotnet add package JamesHelper --version 1.0.1                
NuGet\Install-Package JamesHelper -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JamesHelper" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JamesHelper --version 1.0.1                
#r "nuget: JamesHelper, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JamesHelper as a Cake Addin
#addin nuget:?package=JamesHelper&version=1.0.1

// Install JamesHelper as a Cake Tool
#tool nuget:?package=JamesHelper&version=1.0.1                

JamesHelper nuget package guide line

following helper classes are available in James Helper nuget package.

1. DB Command Added parameter for calling an any store procedures.

2. SQL Parameter

  • AddSQLParameter: Added parameter for calling an any store procedures.
  • CreateCommandAndParameters: We can create a command and adding a parameter to any store procedure for execute that store procedure.

3. Dictionary

  • Insert: In that we have added key in the dictionary, it will be used for Insert method and in that we have covered all possible cases, like (already exists, null key, dictionary null etc.), if success then inserts the data in dictionary otherwise not insert data. Returns the true value if successfully insert data in dictionary. Returns the false value if not insert data in dictionary.
  • Update: In that we have updated the value in the dictionary then we have used this method and also we have checked the given key exists then the data is updated otherwise not updated any data. Returns the true value if successfully updated data in dictionary. Returns the false value if not updated data in dictionary.
  • AddOrUpdate: In that we check whether the given data is already exists then update the dictionary data otherwise it will add new data in the dictionary for that data. Returns the true value if successfully inserted/updated data in the dictionary. Returns the false value if not inserted/updated data in dictionary.
  • Contains: In that we have check the given key exists or not in the dictionary.
  • GetOrDefault: In that if we get any data in that dictionary then used this method and if the given key data is not exists then it will return default value.
  • Delete: In that if we have any data, it is deleting in the dictionary.
  • IsNull: check the reference is null or not.

4. String

  • IsDefault: return the default value.
  • RemoveAllSpecialCharacter: given string remove all special characters. Store only data like (A-Za-z0-9) and it will return as a lower case data and remove all leading and trailing spaces to providing any data.
  • SanitizeString: given string value and another parameter for special character for remove the providing special character from the given value.
  • StringToBoolean: it will return the string value to the boolean value.
  • Truncate: it will return the string as a truncate, if one default parameter suffix is not passed any value then default added at last three dots.
  • JFormat: it will work to format the string same like we have used in string.format.

Note: for point #1 and #2 refer this documentation “https://www.c-sharpcorner.com/blogs/execute-store-procedure-in-entity-framework”

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 655 3/15/2019
1.0.0 717 9/26/2018