1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using Ant.Data;
- using System;
- using System.Collections.Generic;
- using System.Linq.Expressions;
- namespace Ant.ORM
- {
-
-
-
- public interface IDbContext : IDisposable
- {
-
-
-
-
-
-
- IQuery<T> Query<T>() where T : new();
-
-
-
-
-
-
-
- IEnumerable<T> SqlQuery<T>(string sql, params DbParam[] parameters) where T : new();
-
-
-
-
-
-
- T Insert<T>(T entity);
-
-
-
-
-
-
- object Insert<T>(Expression<Func<T>> body);
-
-
-
-
-
-
- int Update<T>(T entity);
-
-
-
-
-
-
-
- int Update<T>(Expression<Func<T, T>> body, Expression<Func<T, bool>> condition);
-
-
-
-
-
-
- int Delete<T>(T entity);
-
-
-
-
-
-
- int Delete<T>(Expression<Func<T, bool>> condition);
-
-
-
-
- void TrackEntity(object entity);
- }
- }
|