• λ我爱Aspx >> Asp.Net >> Data Integrity in Web Services (转一)
  • Data Integrity in Web Services (转一)

  • :aspxer  Դ:internet  :2007-5-28 20:37:44  ؼ:web
  • yearsExperience = value;

    }

    }

    public String FirstName;

    public String LastName;

    }

    public class Person

    {

    private PersonData personData;

    public PersonData CurrentData

    {

    get { return personData; }

    set

    {

    if(value.FirstName.Length > 20)

    { throw new Exception("FirstName must be less than 20 characters"); }

    if(value.LastName.Length > 20)

    { throw new Exception("LastName must be less than 20 characters"); }

    if(value.YearsExperience < 2)

    { throw new Exception("People with less than 2 years exp are unemployable in IT."); }

    personData=value;

    }

    }

    //Other useful methods to operate on a person

    }//END OF PERSON OBJECT

    }//END of RemoteObject Passer Namespace

    Ҷƪл˵?
  • һƪ在Web Service中实现Transaction
    һƪData Integrity in Web Services (转二)