Friday, November 20, 2020

Friday, November 6, 2020

Update in Linq

1. Update specific column in linq


 


                     using (var context = new db_context())

                        {

                            d.Srno = data.Srno;

                            context.Configuration.ValidateOnSaveEnabled = false;

                            context.Attendances.Attach(d);

                            System.Data.Entity.Infrastructure.DbEntityEntry<Attendance> entry = context.Entry(d);

                            d.Edate = date;

                            entry.Property(e => e.Edate).IsModified = true;

                            await context.SaveChangesAsync();

                        }

Convert 1.25x speed spent hours convert into normal (1x) speed spent hours

If I run a video with 1.25x or 125% speed till 1 hour 26 minuts, then normal hours will be ?   1 hours 26 minuts convert into hours Total 60...