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

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

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

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

Loading…
Cancel
Save

Powered by TurnKey Linux.