public static EntityEmpleado Create(IDataReader row) { return(new EntityEmpleado( Keys.KeyEmpleado.Create(row), DataCreator.CreateString(row, "CodTienda"), DataCreator.CreateString(row, "Nombres"), DataCreator.CreateString(row, "Apellidos"), DataCreator.CreateDatetime(row, "FechaNacimiento"), DataCreator.CreateString(row, "DNI"), DataCreator.CreateInt32(row, "IdCargo"), DataCreator.CreateChar(row, "Sexo"), DataCreator.CreateChar(row, "EstadoCivil"), DataCreator.CreateInt32(row, "Estado"))); }
public static EntityPedido Create(IDataReader fila) { return(new EntityPedido( Keys.KeyPedido.Create(fila), DataCreator.CreateInt32(fila, "IDEmpresa"), DataCreator.CreateString(fila, "CodigoPedido"), DataCreator.CreateDatetime(fila, "FechaPedido"), DataCreator.CreateDatetime(fila, "FechaPago"), DataCreator.CreateDatetime(fila, "FechaEntrega"), DataCreator.CreateInt32(fila, "IDEncargado"), DataCreator.CreateDecimal(fila, "TotalBruto"), DataCreator.CreateDecimal(fila, "Retencion"), DataCreator.CreateDecimal(fila, "TotalNeto"), DataCreator.CreateInt32(fila, "Estado"))); }