Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Npgsql #88

Open
jigrain opened this issue Aug 2, 2023 · 0 comments
Open

Error with Npgsql #88

jigrain opened this issue Aug 2, 2023 · 0 comments

Comments

@jigrain
Copy link

jigrain commented Aug 2, 2023

I use a special package Npgsql to work with PostgreSQL. And I have all models loaded normally except one and the most important one.
Here is the composition of the model:

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        public Guid GuidId { get; set; }

        public virtual EventType Type { get; set; }

        public string Title { get; set; }

        public string Desc { get; set; }

        public Guid Author { get; set; }

        public bool IsAllowed { get; set; }

        public DateTime DateStart { get; set; }

        public DateTime DateEnd { get; set; }

        public string Place { get; set; }

        public Guid Responsible { get; set; }

        public DateTime DateCreated { get; set; }

        public DateTime DateUpdated { get; set; }

        public virtual ICollection<EventСomment> Comments { get; set; }

        public virtual ICollection<EventWorker> Workers { get; set; }

        public virtual ICollection<EventAdministration> Administrations { get; set; }

        public virtual ICollection<EventInvitation> invitations { get; set; }

The error I'm getting:
NpgsqlOperationInProgressException: A command is already in progress: SELECT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant