protected override string TypeName(DbType type) { switch (type) { case DbType.Int32: case DbType.Int64: return "INTEGER"; // necessary for autoincrements to work properly! default: return base.TypeName(type); } } }