Пример #1
0
 protected override void Configure(IConfigureTable <SagaRow> cfg)
 {
     cfg.Column(c => c.SagaId, c => c.HasSize(32).NotNull())
     .PrimaryKey(pk => pk.OnColumns(d => d.SagaId));
     if (_db.Provider.IsSqlserver())
     {
         cfg.ColumnSize(d => d.Data, "max");
     }
 }
        protected override void Configure(IConfigureTable <ProcessorMessagesRow> cfg)
        {
            cfg.ColumnSize(d => d.Processor, 75)
            .Column(d => d.ArrivalId, c => c.AutoIncrement())

            .Index(pk => pk.OnColumns(d => d.MessageId, d => d.Processor).Unique());
            if (this._db.Provider.IsSqlite())
            {
                cfg.ColumnDbType(d => d.MessageId, SqliteType.Text)

                //.PrimaryKey(pk => pk.OnColumns(d => d.ArrivalId))
                ;
            }
            if (this._db.Provider.IsSqlserver())
            {
                cfg.ColumnSize(d => d.Data, "max")
                .PrimaryKey(pk => pk.OnColumns(d => d.ArrivalId))
                //.Column(d => d.ArrivalId, c => c.AutoIncrement())
                ;
            }
        }
Пример #3
0
        protected override void Configure(IConfigureTable <IdemRow> cfg)
        {
            cfg.ColumnSize(d => d.MessageId, 150);

            cfg.PrimaryKey(pk => pk.OnColumns(d => d.MessageId));
        }