Method | Description | |
---|---|---|
GetAddRelationSql ( |
||
GetCascadeDeleteSql ( |
||
GetCheckExistSql ( |
||
GetDeleteItemSql ( |
||
GetDeleteRelationsSql ( |
||
GetDeleteSql ( |
获得实体类对应的delete sql
|
|
GetGeneratedKeySql ( string seqName ) : string |
获得一条SQL,该SQL从数据库中查询最近一次插入操作生成的主键,此方法由子类实现
|
|
GetInsertSql ( |
获得实体类对应的表的insert sql
|
|
GetLoadColumnPropertySql ( |
||
GetLoadManyToManyPropertySql ( |
||
GetLoadManyToOnePropertySql ( |
||
GetLoadOneToManyPropertySql ( |
||
GetPagingSql ( string sqlText, int firstResult, int pageSize ) : string |
执行查询之前,对SQL命令进行预处理,此方法由子类实现
|
|
GetSelectSql ( |
获得实体类对应的select sql
|
|
GetUpdateForeignKeySql ( |
||
GetUpdateSql ( |
获得实体类对应的update sql
|
Method | Description | |
---|---|---|
AppendSelectedColumns ( StringBuilder sb, |
Method | Description | |
---|---|---|
GetSelectFromPart ( |
protected AppendSelectedColumns ( StringBuilder sb, |
||
sb | StringBuilder | |
type | ||
enableLazy | bool | |
resultMap | string>.Dictionary | |
prefix | string | |
return | void |
public GetAddRelationSql ( |
||
manyToManyProp | ||
return | string |
public GetCascadeDeleteSql ( |
||
oneToManyProp | ||
return | string |
public GetCheckExistSql ( |
||
type | ||
return | string |
public GetDeleteItemSql ( |
||
oneToManyProp | ||
countLeft | int | |
return | string |
public GetDeleteRelationsSql ( |
||
manyToManyProp | ||
return | string |
public GetDeleteSql ( |
||
type | 实体类 | |
return | string |
public abstract GetGeneratedKeySql ( string seqName ) : string | ||
seqName | string | 生成主键的序列,如果此方法的实现不需要此参数,可忽略 |
return | string |
public GetInsertSql ( |
||
type | 实体类 | |
return | string |
public GetLoadColumnPropertySql ( |
||
prop | ||
return | string |
public GetLoadManyToManyPropertySql ( |
||
prop | ||
enableLazy | bool | |
resultMap | string>.Dictionary | |
return | string |
public GetLoadManyToOnePropertySql ( |
||
prop | ||
enableLazy | bool | |
resultMap | string>.Dictionary | |
return | string |
public GetLoadOneToManyPropertySql ( |
||
prop | ||
enableLazy | bool | |
resultMap | string>.Dictionary | |
return | string |
public abstract GetPagingSql ( string sqlText, int firstResult, int pageSize ) : string | ||
sqlText | string | 要进行预处理的SQL |
firstResult | int | 要返回的第一条结果的索引,该索引从0开始 |
pageSize | int | 返回的结果数量,若为0,则返回所有结果,不进行分页查询 |
return | string |
public GetSelectSql ( |
||
type | 实体类 | |
enableLazy | bool | |
resultMap | string>.Dictionary | |
where | string | |
return | string |
public GetUpdateForeignKeySql ( |
||
oneToManyProp | ||
countLeft | int | |
return | string |
public GetUpdateSql ( |
||
type | 实体类 | |
return | string |