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

Strange SQL Generated #129

Open
OMironov opened this issue Oct 28, 2016 · 3 comments
Open

Strange SQL Generated #129

OMironov opened this issue Oct 28, 2016 · 3 comments

Comments

@OMironov
Copy link

Hello i have some problems with your library
For This Code:

using (var _context = new FPCS.Data.TestContext())
{
    var repo = _context.StudentPacketCourse.FirstOrDefault(x => x.StudentPacketCourseId == 72602);
    repo.Q11 = "D";
    _context.SaveChanges(User.UserId);
}

I have got sql related in file
sql.txt

TestContext:

public partial class TestContext : TrackerEnabledDbContext.TrackerContext
    {
        public TestContext() : base("ConnectionString") { }

        public virtual DbSet<StudentPacketCourse> StudentPacketCourse { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            //Configs
        }
    }

What im doing wrong?

@bilal-fazlani
Copy link
Owner

what happens with same code when u don't use this library ?

@OMironov
Copy link
Author

Everything works fine, generated sql in related file
sqlDefaultContext.txt

@garypoker3
Copy link

related to this one #134

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

3 participants