예제 #1
0
    /// <summary>
    /// 先Delete后Insert 插入所有字段,其中若与实体字段初始值相同则置该字段为空
    /// </summary>
    /// <param name="arrConditionKey">指定作为Delete依据字段,一个或多个,可以使用对应的EntityColumn属性</param>
    /// <returns>先Delete后Insert并返回受影响的行数</returns>
    public int DelInsertEx(string[] arrConditionKey)
    {
        ORMap <BaseEntity> ormap = new ORMap <BaseEntity>(this);

        return(ormap.DelInsertEx(arrConditionKey));
    }