What is the performance or difference between the two functions. (Or are they the same)
public Entity getEntityById(long Id)
{
Entity entity = new Entity();
if (!entity.FetchUsingPK(Id) )
{
entity = null;
}
return entity
}
AND
public Entity getEntityById(long Id)
{
Entity entity = new Entity(Id);
if (entity.IsNew )
{
entity = null;
}
return entity
}