SPBP.Core
1.0.0.8
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
<PackageReference Include="SPBP.Core" Version="1.0.0.8" />
paket add SPBP.Core --version 1.0.0.8
#r "nuget: SPBP.Core, 1.0.0.8"
// 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
- NonQuery version: Is used to execute procedure without receiving data
Create DBAgent
DbAgent agent = new DbAgent(connectionstring);Create Procedure object : DataSItem itm = new DataSItem {
Schema = "dbo", //schema name Name = "Images_NewINstance" };
Equip procedure with parameter : itm.AddParam(new DataParam("@path", CustomSqlTypes.String));
If the procedure returns some data you can set it as a parameter : itm.AddReturnParam(CustomSqlTypes.Int);
Equip param with value : itm.Params["@path"].Value = newimagepath ;
Execute procedure : ExecAsyncResult res = await itm.ExecuteNonQueryAsync(agent); //or ExecResult res = itm.ExecuteNonQuery(agent);
- ExecDataSet version is used to receive dataset from execution of procedure :
Create DBAgent : DbAgent agent = new DbAgent(connectionstring);
Create Procedure object : DataSItem itm = new DataSItem {
Schema = "auto", //schema name Name = "Models_Get" // procedure name };
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;
- ExecuteDataReaderByRefAsync and ExecuteDataReaderByRef versions : is used when you need to retrive whole object from procedure :
Create DBAgent : DbAgent agent = new DbAgent(connectionstring);
Create Procedure object : DataSItem itm = new DataSItem { Schema = "general", //schema name Name = "Images_Get" // procedure name };
Create object class that will be received : [DbObject] public class Img { [ColumnName()] public int Id { get; set; }
[ColumnName] public string Path { get; set; }
}
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 | Versions 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. |
-
.NETStandard 2.0
- System.Data.SqlClient (>= 4.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.