Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 03, 2012 06:56 AM by merishaw
Jul 16, 2012 08:50 AM|LINK
Hi, I have entity named Category, Category can be
enabled and disabled for annotation and
Now want to write a method that will enable and disable category for annotation and reporting. I have named the method
EnableDisableCategory, it seems to me that the name is not suitable its not representing the purpose of the method.
Can you please suggest what will be the suitable name?
Jul 16, 2012 09:12 AM|LINK
IsDisabled should be the property name
by default if it is Enabled and User have to disabled it ocaasionally then it should be IsEnabled
and the data type should be bit in Sql Server and boolean in C#/Vb
Jul 16, 2012 10:11 AM|LINK
Thanks for the reply.
But want a slingle method through wich I will enable and disable category for annotation and reporting.
The method that I have written is like below :
ChangeCategoryStatus( int categoryID,string property,bool enable);hrere categroyId= the id of the category whose status have change.property = is either annotation/reporingand enable= if true enable else disable.Now I have named the method as ChangeCategoryStatus.
Aug 03, 2012 06:56 AM|LINK
Changecategorystatus is good one.