Escolar Documentos
Profissional Documentos
Cultura Documentos
IO;
using System.Reflection;
using NUnit.Framework;
using ODX.Core;
using ODX.LazyUnitTester;
namespace Refresh
{
[Table("Human")]
public abstract class Human : Entity
{
public abstract string Name { get; set;}
public abstract int Age { get; set;}
[Column("MasterID")]
public abstract IEntityList<Pet> Pets { get; }
}
[Table("Pet")]
public abstract class Pet : Entity
{
public abstract string Name { get; set;}
public abstract Human Master { get; set; }
}
[TestFixture]
public class C10_Refresh
{
[TestBody]
static void Main()
{
const string filename = "pets.xml";
if (File.Exists(filename))
File.Delete(filename);
s1.Save();
s2.Save();
[Test]
public void Test()
{
LUT.Execute(Main);
}
}
}