This commit is contained in:
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||
namespace AyaNova.Util
|
||||
{
|
||||
|
||||
internal static class ImportUpdateObject
|
||||
internal static class ImportUtil
|
||||
{
|
||||
/// <summary>
|
||||
/// Copies the data of one object to another. The target object 'pulls' properties of the first.
|
||||
@@ -20,7 +20,7 @@ namespace AyaNova.Util
|
||||
/// <param name="propertiesToUpdate">A list of properties that should be copied</param>
|
||||
public static void Update(object source, object target, List<string> propertiesToUpdate)
|
||||
{
|
||||
|
||||
|
||||
MemberInfo[] miT = target.GetType().GetMembers(BindingFlags.Public | BindingFlags.Instance);
|
||||
foreach (MemberInfo Field in miT)
|
||||
{
|
||||
@@ -55,6 +55,11 @@ namespace AyaNova.Util
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static string GetImportTag()
|
||||
{
|
||||
return "z-import-" + DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
}
|
||||
}//eoc
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user