Ejemplo n.º 1
0
        public void Configure(EntityTypeBuilder <ImageAsset> builder)
        {
            builder.ToTable(nameof(ImageAsset), DbConstants.CofoundrySchema);

            builder.Property(s => s.FileName)
            .IsRequired()
            .HasMaxLength(130);

            builder.Property(s => s.FileNameOnDisk)
            .IsRequired()
            .HasMaxLength(50);

            builder.Property(s => s.Title)
            .IsRequired()
            .HasMaxLength(130);

            builder.Property(s => s.FileExtension)
            .IsRequired()
            .HasMaxLength(30);

            builder.Property(s => s.VerificationToken)
            .IsRequired()
            .IsCharType(6);

            builder.Property(s => s.DefaultAnchorLocation).HasColumnName("ImageCropAnchorLocationId");

            builder.Property(s => s.FileUpdateDate).IsUtc();

            UpdateAuditableMappingHelper.Map(builder);
        }
Ejemplo n.º 2
0
        public void Configure(EntityTypeBuilder <DocumentAsset> builder)
        {
            builder.ToTable(nameof(DocumentAsset), DbConstants.CofoundrySchema);

            builder.Property(s => s.FileName)
            .IsRequired()
            .HasMaxLength(130);

            builder.Property(s => s.FileNameOnDisk)
            .IsRequired()
            .IsUnicode(false)
            .HasMaxLength(50);

            builder.Property(s => s.Title)
            .IsRequired()
            .HasMaxLength(130);

            builder.Property(s => s.Description)
            .IsRequired();

            builder.Property(s => s.FileExtension)
            .IsRequired()
            .HasMaxLength(5);

            builder.Property(s => s.VerificationToken)
            .IsRequired()
            .IsCharType(6);

            builder.Property(s => s.ContentType)
            .HasMaxLength(100);

            builder.Property(s => s.FileUpdateDate).IsUtc();

            UpdateAuditableMappingHelper.Map(builder);
        }
Ejemplo n.º 3
0
        public void Configure(EntityTypeBuilder <DocumentAsset> builder)
        {
            builder.ToTable("DocumentAsset", DbConstants.CofoundrySchema);

            // Properties
            builder.Property(s => s.FileName)
            .IsRequired()
            .HasMaxLength(100);

            builder.Property(s => s.Title)
            .IsRequired()
            .HasMaxLength(100);

            builder.Property(s => s.Description)
            .IsRequired();

            builder.Property(s => s.FileExtension)
            .IsRequired()
            .HasMaxLength(5);

            builder.Property(s => s.ContentType)
            .HasMaxLength(100);

            UpdateAuditableMappingHelper.Map(builder);
        }
Ejemplo n.º 4
0
        public DocumentAssetMap()
        {
            ToTable("DocumentAsset", DbConstants.CofoundrySchema);

            // Properties
            Property(t => t.FileName)
            .IsRequired()
            .HasMaxLength(100);

            Property(t => t.Title)
            .IsRequired()
            .HasMaxLength(100);

            Property(t => t.Description)
            .IsRequired();

            Property(t => t.FileExtension)
            .IsRequired()
            .HasMaxLength(5);

            Property(t => t.ContentType)
            .HasMaxLength(100);

            UpdateAuditableMappingHelper.Map(this);
        }
Ejemplo n.º 5
0
        public ImageAssetMap()
        {
            ToTable("ImageAsset", DbConstants.CofoundrySchema);

            // Properties
            Property(t => t.FileName)
            .IsRequired()
            .HasMaxLength(128);

            Property(t => t.FileDescription)
            .IsRequired()
            .HasMaxLength(512);

            Property(t => t.Extension)
            .IsRequired()
            .HasMaxLength(5);

            // Table & Column Mappings
            Property(t => t.DefaultAnchorLocation).HasColumnName("ImageCropAnchorLocationId");


            UpdateAuditableMappingHelper.Map(this);
        }
Ejemplo n.º 6
0
        public void Configure(EntityTypeBuilder <ImageAsset> builder)
        {
            builder.ToTable("ImageAsset", DbConstants.CofoundrySchema);

            // Properties
            builder.Property(s => s.FileName)
            .IsRequired()
            .HasMaxLength(128);

            builder.Property(s => s.FileDescription)
            .IsRequired()
            .HasMaxLength(512);

            builder.Property(s => s.Extension)
            .IsRequired()
            .HasMaxLength(5);

            // Table & Column Mappings
            builder.Property(s => s.DefaultAnchorLocation).HasColumnName("ImageCropAnchorLocationId");


            UpdateAuditableMappingHelper.Map(builder);
        }