コード例 #1
0
ファイル: ByteArrayConvention.cs プロジェクト: sesquiv/siacvu
        public void Apply(IProperty property)
        {
            if (property.PropertyType == typeof(byte[]))
                property.CustomSqlTypeIs("image");

            if (property.Property.Name.Contains("Nombre") || property.Property.Name.Contains("Titulo"))
            {
                property.WithLengthOf(250);
                //property.Not.Nullable();
            }

            if (property.Property.Name.Contains("Resumen") || property.Property.Name.Contains("Descripcion"))
                property.WithLengthOf(400);
        }