/// <summary>
 ///  Extension method of Entity Object This will clear the Entity of Object and all related CHild Objects
 ///
 /// </summary>
 /// <param name="source">Entity Object on which audit property will be applied</param>
 /// <param name="bcheckHierarchy">This Parameter will define to clear enitty of all Child Object or not to set for child objects</param>
 /// <param name="sModifiedby">This will be used setting Createdby/Modifiedby Attribute</param>
 /// is to be changed </param>
 /// <returns></returns>
 public static EntityObject ClearEntityReference(this  EntityObject source, bool bcheckHierarchy)
 {
     return(source.ClearEntityObject(bcheckHierarchy));
 }