Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Геннадий Забула
> No. You talked about generator/identity columns. Possibly replacing the interface. I think I've lose the point in this. > That's definitely not. You can have one generator for all tables (and it's even better). For "Even better" I have doubts. Especially for multithreaded inserts to different

Re: [Firebird-net-provider] Inserting strings problem

2015-10-01 Thread Jiří Činčura
How does the entity and mapping looks like? -- Mgr. Jiří Činčura Independent IT Specialist -- ___ Firebird-net-provider mailing list

Re: [Firebird-net-provider] Debug Error for GdsTransaction.cs of ADO.NET provider 4.8.1.0

2015-10-01 Thread Jiří Činčura
Looks like I uploaded build created from wrong branch. I reuploaded the binaries. Please have a look. -- Mgr. Jiří Činčura Independent IT Specialist On Thu, Oct 1, 2015, at 11:38, LtColRDSChauhan wrote: > Hello, > > 1. After upgrading from ADO.NET provider 4.8.0.0 to ADO.NET provider >

Re: [Firebird-net-provider] Inserting strings problem

2015-10-01 Thread Геннадий Забула
Entity: public sealed class Table { public Table() { this.Entities1 = new List(); } public int Id { get; set; } public string Field1{ get; set; } public string Field2{get; set; } public string Field3 { get; set; }

Re: [Firebird-net-provider] Inserting strings problem

2015-10-01 Thread Геннадий Забула
Hm, looks like it works. Added .HasMaxLength(256) to all fields and it goes success ahead. Before I tried only for one field and it doesn't work. Thx for fast response. On 1 October 2015 at 13:56, Jiří Činčura wrote: > You should specify, at least, the length. Else it's the

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Jiří Činčura
On Thu, Oct 1, 2015, at 11:45, Геннадий Забула wrote: > >Do you think the annotations will be better? > Better than what? Your concern was about different naming schemes, I > suggested how it can be resolved via column annotations and custom > name providers. I don't know other options for this.

Re: [Firebird-net-provider] Debug Error for GdsTransaction.cs Re: Firebird-net-provider Digest, Vol 114, Issue 2

2015-10-01 Thread Jiří Činčura
On Thu, Oct 1, 2015, at 14:12, LtColRDSChauhan wrote: > With FirebirdSql.Data.FirebirdClient.4.8.1.1, SharpDevelop Debug now runs > without reporting the error. Thanks a lot for such a quick response. We should pinpoint what's causing to go wrong in SharpDevelop. This version will eventually

Re: [Firebird-net-provider] Inserting strings problem

2015-10-01 Thread Геннадий Забула
We map the entities through EntityTypeConfiguration class: Src table mapping: this.HasKey(t => t.Id); // Properties // Table & Column Mappings this.ToTable("TABLE2"); this.Property(t => t.Id).HasColumnName("ID");

[Firebird-net-provider] Debug Error for GdsTransaction.cs Re: Firebird-net-provider Digest, Vol 114, Issue 2

2015-10-01 Thread LtColRDSChauhan
> >5. Re: Debug Error for GdsTransaction.cs of ADO.NET provider > 4.8.1.0 (Ji?? ?in?ura) > > Message: 5 > Date: Thu, 01 Oct 2015 12:53:15 +0200 > From: Ji?? ?in?ura > Subject: Re: [Firebird-net-provider] Debug Error for GdsTransaction.cs > of ADO.NET provider

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Jiří Činčura
On Thu, Oct 1, 2015, at 13:38, Геннадий Забула wrote: > I'm talking about "generator creation", it should be hidden in the > provider. Though names yes, user should be allowed to pick a naming > scheme he wants. > In case "one generator for all tables" user specifies one generator > name for all

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Геннадий Забула
> That's why the interface with some default implementation is so convenient. In ModelBuilder you can specify any object as data annotation. In this case user can provide implementation of the interface. On 1 October 2015 at 19:01, Jiří Činčura wrote: > On Thu, Oct 1, 2015, at

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Alexander Muylaert-Gelein
Hi all Jiri asked me to kick in because we have two products. One with one generator per column, one with one generator per database. Pro's of generator per table are You have the feeling of a sequence. There shouldn't be a gap, you can do "math" on it.This is how other db's have it since

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Jiří Činčura
On Thu, Oct 1, 2015, at 19:21, Jiří Činčura wrote: > But then we're back where we started. Question is whether the global > definition for whole migration generator or per column is more > understandable and discoverable for developers. And I'm not sure we two can find the answer. Wish others

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Jiří Činčura
On Thu, Oct 1, 2015, at 19:00, Геннадий Забула wrote: > In ModelBuilder you can specify any object as data annotation. In this > case user can provide implementation of the interface. But then we're back where we started. Question is whether the global definition for whole migration generator or

Re: [Firebird-net-provider] Migrations

2015-10-01 Thread Daniel Rail
Hi, At October 1, 2015, 2:21 PM, Jiří Činčura wrote: > On Thu, Oct 1, 2015, at 19:00, Геннадий Забула wrote: >> In ModelBuilder you can specify any object as data annotation. In this >> case user can provide implementation of the interface. > But then we're back where we started. Question is

[Firebird-net-provider] [FB-Tracker] Created: (DNET-636) FbParameterCollection's Clear method can't set parameter's attribute Parent to null

2015-10-01 Thread ranfu (JIRA)
FbParameterCollection's Clear method can't set parameter's attribute Parent to null --- Key: DNET-636 URL: http://tracker.firebirdsql.org/browse/DNET-636 Project: .NET

[Firebird-net-provider] Inserting strings problem

2015-10-01 Thread Геннадий Забула
I have next table in two databases: CREATE TABLE TABLE2( ID INTEGER NOT NULL, FIELD1 VARCHAR(256), FIELD2 VARCHAR(256), FIELD3 VARCHAR(512), FIELD4 VARCHAR(100), FIELD5 VARCHAR(2048)) Using EF I'm trying to copy data from one database to another. I want to copy full data