Different conditions for different clients RRS feed

  • Question

  • User1668883172 posted


    Could anyone help how to set different conditions for different clients lets take one example

    Class Test


       public int Age{get;set;}

      public int Salary{get;set;}




    Test _test=new Test();



    //some code



    Lets see here I have written one condition _test.Age>10 if it is true, then the following code will execute. But here I have hard coded the condition. If some client want the condition like if _test.Salary>1000 then the following code will execute. So I want some thing the condition will change according to the client. For this type of scenario what I will do could anyone help me.

    Tuesday, February 23, 2016 10:07 AM


  • User-821857111 posted

    The way that most systems do this is to provide the user with a way to specify the tests (search criteria) and then the system will be designed to dynamically generate SQL to search a database for records that match the specified criteria. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 23, 2016 2:21 PM