The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

! (Use Nullable Types Always)

Last post 10-23-2007, 2:02 PM by LBowers. 2 replies.
Sort Posts: Previous Next
  •  10-22-2007, 9:49 PM 5977

    ! (Use Nullable Types Always)

    I have (at last!) unchecked this fantastic option (thanks guys!), but there seems to be a small buggette.

    I have a sql_variant (NOT NULL) column in a table, and the following property getter is defined in the entity class.

    However, esEntity.GetSystemObjectRequired doesn't exist.

     

     

    Code:
    		/// <summary>
    /// Maps to Setting.Value
    /// </summary>
    virtual public System.Object Value
    {
    get { return base.GetSystemObjectRequired(SettingMetadata.ColumnNames.Value);
    }

    set { if(base.SetSystemObject(SettingMetadata.ColumnNames.Value, value))
    {
    this.MarkFieldAsModified(SettingMetadata.ColumnNames.Value);
    }
    }
    }
     
  •  10-23-2007, 5:59 AM 5985 in reply to 5977

    Re: ! (Use Nullable Types Always)

    Okay, but we need to warn you, there is better than a 50% chance this option will be removed, the complexities it introduces is tremendous, everywhere in all of our templates we have to deal with the coding differences between the two techniques. However, that has not been decided, my leaning at this point is that will not be supported unil 2008 when we rewrite our entire template system.
    EntitySpaces | Twitter | BLOG | Please honor our Software License
  •  10-23-2007, 2:02 PM 6007 in reply to 5985

    Re: ! (Use Nullable Types Always)

    I really hope this doesn't get dropped.
    Leigh
View as RSS news feed in XML