aggiunta modello DB (x anag key value iniziale)
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user