mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 增加 IInsert IgnoreInsertValueSql 方法临时忽略 InsertValueSql 设置;
This commit is contained in:
@ -76,6 +76,14 @@ namespace FreeSql
|
||||
/// <returns></returns>
|
||||
IInsert<T1> IgnoreColumns(string[] columns);
|
||||
|
||||
/// <summary>
|
||||
/// 忽略 InsertValueSql 设置,将使用实体对象的值插入<para></para>
|
||||
/// IgnoreInsertValueSql(a => a.Name) | IgnoreInsertValueSql(a => new{a.Name,a.Time}) | IgnoreInsertValueSql(a => new[]{"name","time"})
|
||||
/// </summary>
|
||||
/// <param name="columns">属性名,或者字段名</param>
|
||||
/// <returns></returns>
|
||||
IInsert<T1> IgnoreInsertValueSql(Expression<Func<T1, object>> columns);
|
||||
|
||||
/// <summary>
|
||||
/// 指定可插入自增字段
|
||||
/// </summary>
|
||||
|
@ -308,9 +308,9 @@ namespace FreeSql.Aop
|
||||
#region AuditValue
|
||||
public class AuditValueEventArgs : EventArgs
|
||||
{
|
||||
public AuditValueEventArgs(AuditValueType autoValueType, ColumnInfo column, PropertyInfo property, object value, object obj)
|
||||
public AuditValueEventArgs(AuditValueType auditValueType, ColumnInfo column, PropertyInfo property, object value, object obj)
|
||||
{
|
||||
this.AuditValueType = autoValueType;
|
||||
this.AuditValueType = auditValueType;
|
||||
this.Column = column;
|
||||
this.Property = property;
|
||||
this._value = value;
|
||||
|
Reference in New Issue
Block a user