public static void DesConectar(this IAbstractDataContext context) { if (context.GetConnectionState() == ConnectionState.Open) { context.GetConexao().Connection.Close(); } }