/// <summary> /// Get cell ID from its tag. /// </summary> /// <param name="cell"></param> /// <returns></returns> public static Cell GetCell(this object cell) { using (var ctx = new Entities()) { return ctx.GetCell(cell); } }