pull/3/head
Ogoun 2 years ago
parent 3df5f99804
commit c3376c70ab

@ -35,8 +35,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Aurigma.GraphicsMill.Core.x64" Version="10.6.25" />
<PackageReference Include="Microsoft.ML.OnnxRuntime.Managed" Version="1.11.0" />
<PackageReference Include="Aurigma.GraphicsMill.Core.x64" Version="10.6.29" />
<PackageReference Include="Microsoft.ML.OnnxRuntime.Managed" Version="1.12.1" />
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.3" />
<PackageReference Include="SixLabors.ImageSharp.Drawing" Version="1.0.0-beta14" />
</ItemGroup>

@ -17,20 +17,19 @@ namespace ZeroLevel.SqLite
_db = new SQLiteConnection(PrepareDb(name));
}
public T Append(T record)
public int Append(T record)
{
_db.Insert(record);
return record;
return _db.Insert(record);
}
public void CreateTable()
public CreateTableResult CreateTable()
{
_db.CreateTable<T>();
return _db.CreateTable<T>();
}
public void DropTable()
public int DropTable()
{
_db.DropTable<T>();
return _db.DropTable<T>();
}
public IEnumerable<T> SelectAll()
@ -86,9 +85,9 @@ namespace ZeroLevel.SqLite
return _db.Table<T>().Delete(predicate);
}
public void Update(T record)
public int Update(T record)
{
_db.Update(record);
return _db.Update(record);
}
protected static string PrepareDb(string path)

@ -496,8 +496,6 @@ namespace ZeroLevel.DependencyInjection
#endregion Register
#region Register with parameters
public void ParameterizedRegister<TContract, TImplementation>(object[] constructorParameters)

Loading…
Cancel
Save

Powered by TurnKey Linux.