SPBP.Core 1.0.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package SPBP.Core --version 1.0.0.8
NuGet\Install-Package SPBP.Core -Version 1.0.0.8
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="SPBP.Core" Version="1.0.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SPBP.Core --version 1.0.0.8
#r "nuget: SPBP.Core, 1.0.0.8"
#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 SPBP.Core as a Cake Addin
#addin nuget:?package=SPBP.Core&version=1.0.0.8

// Install SPBP.Core as a Cake Tool
#tool nuget:?package=SPBP.Core&version=1.0.0.8
  1. NonQuery version: Is used to execute procedure without receiving data
  1. Create DBAgent
    DbAgent agent = new DbAgent(connectionstring);

  2. Create Procedure object : DataSItem itm = new DataSItem {

             Schema = "dbo", //schema name 
             Name = "Images_NewINstance"
         };
    
  3. Equip procedure with parameter : itm.AddParam(new DataParam("@path", CustomSqlTypes.String));

  4. If the procedure returns some data you can set it as a parameter : itm.AddReturnParam(CustomSqlTypes.Int);

  5. Equip param with value : itm.Params["@path"].Value = newimagepath ;

  6. Execute procedure : ExecAsyncResult res = await itm.ExecuteNonQueryAsync(agent); //or ExecResult res = itm.ExecuteNonQuery(agent);

  1. ExecDataSet version is used to receive dataset from execution of procedure :
  1. Create DBAgent : DbAgent agent = new DbAgent(connectionstring);

  2. Create Procedure object : DataSItem itm = new DataSItem {

             Schema = "auto", //schema name 
             Name = "Models_Get" // procedure name 
         };
    
  3. Equip procedure with params if needed and execute : DataSet ds = new DataSet(); //sync version

         ExecResult res =  _selectedProcedure.ExecDataSet(agent, out ds);
    
         //async version 
    
         ExecAsyncResult resas =  await _selectedProcedure.ExecDataSetAsync(agent);
        ds = resas.Object as DataSet; 
    
  1. ExecuteDataReaderByRefAsync and ExecuteDataReaderByRef versions : is used when you need to retrive whole object from procedure :
  1. Create DBAgent : DbAgent agent = new DbAgent(connectionstring);

  2. Create Procedure object : DataSItem itm = new DataSItem { Schema = "general", //schema name Name = "Images_Get" // procedure name };

  3. Create object class that will be received : [DbObject] public class Img { [ColumnName()] public int Id { get; set; }

     [ColumnName]
     public string Path { get; set; }
    

    }

  4. Equip procedure with params if needed and execute : itm.AddReturnParam(CustomSqlTypes.Int); // procedure has return value as int IBag<Img> images ; //executeion async ExecAsyncResult res = await itm.ExecuteDataReaderByRefAsync<Img>(agent); images = res.Object as IBag<Img>;

    //sync version ExecResult rs = itm.ExecuteDataReaderByRef<Img>(agent, out images);

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.0.9 610 5/17/2019
1.0.0.8 528 5/8/2019