partial void DeletePosition(Position instance);
partial void InsertPosition(Position instance);
partial void UpdatePosition(Position instance);
private static Position InsertPositionByName(NPGGFFLDataContext context, string positionName) { var positionExists = context.Positions.Where(p => p.Name.ToUpper().Equals(positionName.ToUpper())).FirstOrDefault(); if (positionExists == null) { Position position = new Position(); position.Name = positionName; context.Positions.InsertOnSubmit(position); context.SubmitChanges(); return context.Positions.Where(p => p.Name.ToUpper().Equals(positionName.ToUpper())).FirstOrDefault(); } else { return positionExists; } }