aggiunta modello DB (x anag key value iniziale)

This commit is contained in:
Samuele E. Locatelli
2016-12-20 12:17:32 +01:00
parent d077d0a15c
commit 5956da87a9
2 changed files with 47 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
namespace MP.Models
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.Spatial;
[Table("AnagKeyValue")]
public partial class AnagKeyValue
{
[Key]
[StringLength(50)]
public string nomeVar { get; set; }
public int? valInt { get; set; }
public double? valFloat { get; set; }
[StringLength(250)]
public string valString { get; set; }
[StringLength(250)]
public string descrizione { get; set; }
}
}
+21
View File
@@ -0,0 +1,21 @@
namespace MP.Models
{
using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
public partial class MPModel : DbContext
{
public MPModel()
: base("name=MPModel")
{
}
public virtual DbSet<AnagKeyValue> AnagKeyValue { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
}
}
}