Пример #1
0
		/// <summary>
		/// Reset the xml in the DTO and register the DTO as updated with the repository.
		/// Use this overload if the class name is changing.
		/// </summary>
		/// <remarks>
		/// There is no validation of the xml, other than making sure it is not null,
		/// or an emty string.
		/// </remarks>
		internal static void UpdateDTO(IDomainObjectDTORepository dtoRepos,
			DomainObjectDTO dirtball, string newXmlValue, string oldClassName)
		{
			dtoRepos.ChangeClass(dirtball, oldClassName);
			UpdateDTO(dtoRepos, dirtball, newXmlValue);
		}
Пример #2
0
 /// <summary>
 /// Reset the xml in the DTO and register the DTO as updated with the repository.
 /// Use this overload if the class name is changing.
 /// </summary>
 /// <remarks>
 /// There is no validation of the xml, other than making sure it is not null,
 /// or an emty string.
 /// </remarks>
 internal static void UpdateDTO(IDomainObjectDTORepository dtoRepos,
                                DomainObjectDTO dirtball, string newXmlValue, string oldClassName)
 {
     dtoRepos.ChangeClass(dirtball, oldClassName);
     UpdateDTO(dtoRepos, dirtball, newXmlValue);
 }