Sauce has the ability to verify that a view is present in the datastore and that all the required columns are there prior to executing commands against it.

To set up your object just add the view Attribute to the class (note the table name parameter is optional

    [View(TableName="vw")]
    public class vw
    {
        public int ID { get; set; }
        public string BadColumn { get; set; }
    }

If one or more columns are missing you will receive an exception message like so
ViewException.png

If the view is missing you will receive an error like this one
ViewMissing.png

Last edited May 30, 2013 at 4:11 AM by iamkrillin, version 4

Comments

No comments yet.