Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (PontoEntities entity = new PontoEntities())
- {
- Colaboradores cola1 = entity.Colaboradores.Where(cn => cn.Nome == strFunc).FirstOrDefault();
- var regs = entity.Batidas.Where(cn => cn.Codigo == cola1.ID);
- if (regs != null)
- {
- foreach (var item in regs)
- {
- TimeSpan cont = TimeSpan.Parse(item.HorasTotais);;
- Console.WriteLine("{0} horas trabalhadas", cont);
- }
- Console.Read();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement