-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Angel Arciniega
committed
Mar 3, 2017
1 parent
dc52170
commit 69cdeb7
Showing
18 changed files
with
152 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Renova.Models | ||
{ | ||
using System; | ||
using System.Data.Entity; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.Linq; | ||
|
||
public partial class RenoContext : DbContext | ||
{ | ||
public RenoContext() | ||
: base("name=RenoContext") | ||
{ | ||
} | ||
|
||
public virtual DbSet<alumno> alumnos { get; set; } | ||
public virtual DbSet<asistencia> asistencias { get; set; } | ||
|
||
protected override void OnModelCreating(DbModelBuilder modelBuilder) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
namespace Renova.Models | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.Data.Entity.Spatial; | ||
|
||
[Table("alumnos")] | ||
public partial class alumno | ||
{ | ||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] | ||
public alumno() | ||
{ | ||
asistencias = new HashSet<asistencia>(); | ||
} | ||
|
||
[Key] | ||
public int IDAlumno { get; set; } | ||
|
||
[Required] | ||
[StringLength(60)] | ||
public string nombre { get; set; } | ||
|
||
[Required] | ||
[StringLength(100)] | ||
public string apellidos { get; set; } | ||
|
||
[Required] | ||
[StringLength(75)] | ||
public string universidad { get; set; } | ||
|
||
[Required] | ||
[StringLength(100)] | ||
public string carrera { get; set; } | ||
|
||
public int matricula { get; set; } | ||
|
||
[Required] | ||
[StringLength(100)] | ||
public string correo { get; set; } | ||
|
||
public DateTime? fechareg { get; set; } | ||
|
||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] | ||
public virtual ICollection<asistencia> asistencias { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
namespace Renova.Models | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel.DataAnnotations; | ||
using System.ComponentModel.DataAnnotations.Schema; | ||
using System.Data.Entity.Spatial; | ||
|
||
public partial class asistencia | ||
{ | ||
[Key] | ||
public int IDAsistencia { get; set; } | ||
|
||
public int IDAlumno { get; set; } | ||
|
||
public byte? A1 { get; set; } | ||
|
||
public byte? A2 { get; set; } | ||
|
||
public byte? A3 { get; set; } | ||
|
||
public byte? A4 { get; set; } | ||
|
||
public byte? A5 { get; set; } | ||
|
||
public byte? A6 { get; set; } | ||
|
||
public byte? A7 { get; set; } | ||
|
||
public byte? A8 { get; set; } | ||
|
||
public byte? A9 { get; set; } | ||
|
||
public byte? A10 { get; set; } | ||
|
||
[StringLength(55)] | ||
public string estado { get; set; } | ||
|
||
public virtual alumno alumno { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.alumno | ||
@model Renova.Models.alumno | ||
<h2>Registro</h2> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.alumno | ||
@model Renova.Models.alumno | ||
|
||
@{ | ||
ViewBag.Title = "Delete"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.alumno | ||
@model Renova.Models.alumno | ||
|
||
@{ | ||
ViewBag.Title = "Details"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.alumno | ||
@model Renova.Models.alumno | ||
|
||
@{ | ||
ViewBag.Title = "Edit"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model IEnumerable<RenoEnergy.Models.alumno> | ||
@model IEnumerable<Renova.Models.alumno> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.asistencia | ||
@model Renova.Models.asistencia | ||
|
||
@{ | ||
ViewBag.Title = "Create"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.asistencia | ||
@model Renova.Models.asistencia | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.asistencia | ||
@model Renova.Models.asistencia | ||
|
||
<h2>Detalles</h2> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@model RenoEnergy.Models.asistencia | ||
@model Renova.Models.asistencia | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters