日期:2014-05-20  浏览次数:20853 次

linq to sqlite 查询成功,更新和插入失败?附上源码,请帮忙调试
本帖最后由 q107770540 于 2013-06-29 21:34:23 编辑
// 
//  ____  _     __  __      _        _ 
// |  _ \| |__ |  \/  | ___| |_ __ _| |
// | | | | '_ \| |\/| |/ _ \ __/ _` | |
// | |_| | |_) | |  | |  __/ || (_| | |
// |____/|_.__/|_|  |_|\___|\__\__,_|_|
//
// Auto-generated from main on 2013-06-29 10:07:33Z.
// Please visit http://code.google.com/p/dblinq2007/ for more information.
//
namespace Demo
{
using System;
using System.ComponentModel;
using System.Data;

using DbLinq.Data.Linq;
using DbLinq.Vendor;

using System.Data.Linq.Mapping;
using System.Diagnostics;


public partial class main : DataContext
{

#region Extensibility Method Declarations
partial void OnCreated();
#endregion


public main(string connectionString) : 
base(connectionString)
{
this.OnCreated();
}

public main(string connection, MappingSource mappingSource) : 
base(connection, mappingSource)
{
this.OnCreated();
}

public main(IDbConnection connection, MappingSource mappingSource) : 
base(connection, mappingSource)
{
this.OnCreated();
}

public Table<Product> Product
{
get
{
return this.GetTable<Product>();
}
}
}

#region Start MONO_STRICT

public partial class main
{

public main(IDbConnection connection) : 
base(connection)
{
this.OnCreated();
}
}

#endregion


#region End Not MONO_STRICT
#endregion
// MONO_STRICT

    [Table(Name = "main.Product" ) ]
public partial class Product
{
        private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);

private string _prodCode;