From: Геннадий З. <zab...@gm...> - 2015-10-01 10:53:15
|
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"); this.Property(x => x.Field1).HasColumnName("FIELD1"); this.Property(x => x.Field2).HasColumnName("FIELD2"); this.Property(x => x.Field3).HasColumnName("FIELD3"); this.Property(x => x.Field4).HasColumnName("FIELD4"); this.Property(x => x.Field5).HasColumnName("FIELD5"); Dst table mapping inherits from above: :base() { Property(x => x.Id).HasDatabaseGeneratedOption(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.None); } On 1 October 2015 at 13:38, Jiří Činčura <ji...@ci...> wrote: > How does the entity and mapping looks like? > > -- > Mgr. Jiří Činčura > Independent IT Specialist > > > ------------------------------------------------------------------------------ > _______________________________________________ > Firebird-net-provider mailing list > Fir...@li... > https://lists.sourceforge.net/lists/listinfo/firebird-net-provider |