private static void lazyLoadIfSpecified(IPropertyInstance instance)
        {
            var binaryBlobAttribute = getAttribute(instance);

            if (binaryBlobAttribute != null && binaryBlobAttribute.LazyLoad)
            {
                instance.LazyLoad();
            }
        }
 protected override void Apply(LazyLoadAttribute attribute, IPropertyInstance instance)
 {
     if (attribute.Enabled)
     {
         instance.LazyLoad();
     }
     else
     {
         instance.Not.LazyLoad();
     }
 }
Exemplo n.º 3
0
        public void Apply(IPropertyInstance instance)
        {
            if (instance.Property.PropertyType == typeof(byte[]))
            {
                instance.
                CustomSqlType("varbinary(max)");

                instance.
                Length(Int32.MaxValue);

                instance.
                LazyLoad();
            }
        }