using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace Apewer.Source
{
/// 数据库客户端。
public interface IDbOrm
{
#region object
/// 初始化指定类型,以创建表或增加字段。
/// 要初始化的类型。
/// 指定新的表名。
/// 错误信息。当成功时候返回空字符串。
public string Initialize(Type model, string table = null);
/// 初始化指定类型,以创建表或增加字段。
/// 指定新的表名。
/// 错误信息。当成功时候返回空字符串。
public string Initialize(string table = null) where T : class, new();
/// 插入记录。
/// 要插入的记录实体。
/// 插入到指定表。当不指定时,由 record 类型决定。
/// 调整数据模型,补充缺少的属性。
/// 错误信息。当成功时候返回空字符串。
public string Insert(object record, string table = null, bool adjust = true);
/// 使用指定语句查询,获取查询结果。
/// 目标记录的类型。
/// 要执行的 SQL 语句。
/// 为 SQL 命令提供参数。
public Result