completata prima review, da creare/testare pacchetti deploy x IIS01/02 e Donati
This commit is contained in:
@@ -12,6 +12,8 @@ namespace MP.Models
|
||||
using System;
|
||||
using System.Data.Entity;
|
||||
using System.Data.Entity.Infrastructure;
|
||||
using System.Data.Entity.Core.Objects;
|
||||
using System.Linq;
|
||||
|
||||
public partial class MoonProEntities : DbContext
|
||||
{
|
||||
@@ -26,5 +28,23 @@ namespace MP.Models
|
||||
}
|
||||
|
||||
public virtual DbSet<AnagKeyValue> AnagKeyValue { get; set; }
|
||||
|
||||
public virtual ObjectResult<AnagKeyValue> stp_AKV_getByKey(string nomeVar)
|
||||
{
|
||||
var nomeVarParameter = nomeVar != null ?
|
||||
new ObjectParameter("nomeVar", nomeVar) :
|
||||
new ObjectParameter("nomeVar", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<AnagKeyValue>("stp_AKV_getByKey", nomeVarParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<AnagKeyValue> stp_AKV_getByKey(string nomeVar, MergeOption mergeOption)
|
||||
{
|
||||
var nomeVarParameter = nomeVar != null ?
|
||||
new ObjectParameter("nomeVar", nomeVar) :
|
||||
new ObjectParameter("nomeVar", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<AnagKeyValue>("stp_AKV_getByKey", mergeOption, nomeVarParameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+17
-3
@@ -4,7 +4,7 @@
|
||||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="MoonProModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<Schema Namespace="MoonProModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<EntityType Name="AnagKeyValue">
|
||||
<Key>
|
||||
<PropertyRef Name="nomeVar" />
|
||||
@@ -15,11 +15,13 @@
|
||||
<Property Name="valString" Type="nvarchar" MaxLength="250" />
|
||||
<Property Name="descrizione" Type="nvarchar" MaxLength="250" />
|
||||
</EntityType>
|
||||
<Function Name="stp_AKV_getByKey" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
||||
<Parameter Name="nomeVar" Type="nvarchar" Mode="In" />
|
||||
</Function>
|
||||
<EntityContainer Name="MoonProModelStoreContainer">
|
||||
<EntitySet Name="AnagKeyValue" EntityType="Self.AnagKeyValue" Schema="dbo" store:Type="Tables" />
|
||||
</EntityContainer>
|
||||
</Schema>
|
||||
</edmx:StorageModels>
|
||||
</Schema></edmx:StorageModels>
|
||||
<!-- CSDL content -->
|
||||
<edmx:ConceptualModels>
|
||||
<Schema Namespace="MoonProModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
||||
@@ -35,7 +37,17 @@
|
||||
</EntityType>
|
||||
<EntityContainer Name="MoonProEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="AnagKeyValue" EntityType="Self.AnagKeyValue" />
|
||||
<FunctionImport Name="stp_AKV_getByKey" EntitySet="AnagKeyValue" ReturnType="Collection(MoonProModel.AnagKeyValue)">
|
||||
<Parameter Name="nomeVar" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
</EntityContainer>
|
||||
<ComplexType Name="stp_AKV_getByKey_Result">
|
||||
<Property Type="String" Name="nomeVar" Nullable="false" MaxLength="50" />
|
||||
<Property Type="Int32" Name="valInt" Nullable="false" />
|
||||
<Property Type="Double" Name="valFloat" Nullable="false" />
|
||||
<Property Type="String" Name="valString" Nullable="false" MaxLength="250" />
|
||||
<Property Type="String" Name="descrizione" Nullable="false" MaxLength="250" />
|
||||
</ComplexType>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
@@ -53,6 +65,8 @@
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<FunctionImportMapping FunctionImportName="stp_AKV_getByKey" FunctionName="MoonProModel.Store.stp_AKV_getByKey">
|
||||
</FunctionImportMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated from a template.
|
||||
//
|
||||
// Manual changes to this file may cause unexpected behavior in your application.
|
||||
// Manual changes to this file will be overwritten if the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace MP.Models
|
||||
{
|
||||
using System;
|
||||
|
||||
public partial class stp_AKV_getByKey_Result
|
||||
{
|
||||
public string nomeVar { get; set; }
|
||||
public int valInt { get; set; }
|
||||
public double valFloat { get; set; }
|
||||
public string valString { get; set; }
|
||||
public string descrizione { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user