Example #1
0
    /// <summary>
    ///  先Delete后Insert 比较实体前后默认的初始值,且不插入与实体初始值相同的字段值
    /// </summary>
    /// <param name="arrConditionKey">指定作为Delete依据字段,一个或多个,可以使用对应的EntityColumn属性</param>
    /// <returns>先Delete后Insert并返回受影响的行数</returns>
    public int DelInsert(string[] arrConditionKey)
    {
        ORMap <BaseEntity> ormap = new ORMap <BaseEntity>(this);

        return(ormap.DelInsert(arrConditionKey));
    }