using System.Data; using HeuristicLab.Services.Optimization.Billing.Interfaces; namespace HeuristicLab.Services.Optimization.Billing.Utils { public static class StateUtil { public static EntityState ConvertState(State state) { switch (state) { case State.Added: return EntityState.Added; case State.Deleted: return EntityState.Deleted; case State.Modified: return EntityState.Modified; default: return EntityState.Unchanged; } } } }