1
Answer

subtract tow DateTimePicker in datagridview using c#

jumah

jumah

12y
1.9k
1

 

Hi,

This is the datagrid I have:-

when I press a button the the datagrid fill with the data as following

 

EmpName

Status

Firsttime

Lasttime

Minuts late

Hours between last and first time

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The status is a checked box if selected disable the datagridview row if not calculate the hours between lasttime and firsttime for every datagrid row

 

Please help me in solving the problem using winform and c#

thanks

 

Answers (1)
1
Manav Pandya
NA 7.1k 24.1k 7y
Hello
 
First of all "migration" is related to code-first , not DB First 
 
There is no migration needed for DB First approach .
 
For code first migration : you should write update-database if your DB have pending changes
To enable migration - automatically write following snippet in configuration.cs file: 
  1. AutomaticMigrationsEnabled = true;    
  2. AutomaticMigrationDataLossAllowed = false;     
Thanks