hydrologics/Oasis.Base — Issue #38: Trim down partials (remove clone stuff)
Author: johnmetta
Created: 2011-12-20 18:16:13+00:00
State: open

Code like [this](https://github.com/hydrologics/Oasis.Base/blob/master/Oasis.DataModel/Partials/Arc.cs#L79)

public bool Compare(object obj)
{
return new CloneManager().Compare(this, obj as Arc);
}

public bool Discriminant(object obj)
{
return new CloneManager().Discriminant(this, obj as EntityObject);
}

public Run Copy()
{
return new CloneManager().Copy(this);
}

Is fragile and subject to making us pull our hair out later. I'm not sure if all of this now goes away or not, but if it doesn't, it should be packaged up in an extension method so we don't have nearly identical code sprinkled around all the partials.