le pones unos batch-size y es probable que resuelvas el problema. 2009/12/14 Juan Cuello <[email protected]>
> Agrego:
> Como veis, desde Recinte se accede a Recinte.Municipi.Municipi, a
> recinte.Municipi.Municipi.Provincia,... ese es el problema
>
>
> private string CalcularIdentificacioParcela(DunRecinte
> recinte)
> {
> string _resultat = "{0}{1}-{3}-{4}-{5}-{6}";
> string _idProvincia = GeneralUtils.GetFilledNumber
> (recinte.Municipi.Municipi.Provincia.CodiProvincia, 2);
> string _idMunicipi = GeneralUtils.GetFilledNumber
> (recinte.Municipi.Municipi.CodiMunicipi, 3);
> string _agregat = GeneralUtils.GetFilledNumber
> (recinte.Agregat.GetValueOrDefault(0).ToString(), 3);
> string _zona = GeneralUtils.GetFilledNumber
> (recinte.Zona.GetValueOrDefault(0).ToString(), 2);
> string _poligon = GeneralUtils.GetFilledNumber
> (recinte.Poligon, 3);
> string _parcela = GeneralUtils.GetFilledNumber
> (recinte.Parcela.GetValueOrDefault(0).ToString(), 5);
> string _recinte = GeneralUtils.GetFilledNumber
> (recinte.Recinte.GetValueOrDefault(0).ToString(), 5);
>
> return String.Format(_resultat, _idProvincia, _idMunicipi,
> _agregat, _zona, _poligon, _parcela, _recinte);
> }
>
> public partial class DunRecinte
> {
>
> private System.Int16? _Agregat;
> private System.Int16? _AnyPlanta;
> private System.Int16? _AnyRessembra;
> private System.Int16? _ArbresAillats;
> private System.String _CanviOliveres;
> private DunDeclaracio _Declaracio;
> private readonly ISet<DunRecAjut> _RecinteAjuts = new
> HashedSet<DunRecAjut>();
> private readonly ISet<DunRecArbre> _RecinteArbres = new
> HashedSet<DunRecArbre>();
> private DunCodisEmpresCertif _EmpresCertif;
> private System.String _IdFinca;
> private System.String _IndArrencada;
> private System.String _IsValidat;
> private System.Single _MarcPlant1;
> private System.Single _MarcPlant2;
> private System.Single _MetresCamins;
> private System.Single _MetresMur;
> private System.String _ModSigpac;
> private DunCodisMunicipiCad _Municipi;
> private System.Int32? _NumPar;
> private System.Int32? _Parcela;
> private System.Int32? _ParcelFructicola;
> private System.String _PassaportFitosanitari;
> private System.String _PeusCitric;
> private DunCodisPeus _Peus;
> private System.String _Poligon;
> private System.Int32? _Recinte;
> private System.String _SecaRegadiu;
> private DunCodisSistemaFormacio _SistemaFormacio;
> private DunCodisSistemaReg _SistemaReg;
> private System.Double? _SupConreada;
> private DunCodisTinenca _Tinenca;
> private DunCodisUs _Us;
> private DunCodisVarietat _Varietat;
> private System.Int16? _Zona;
> private DunCodisSistemaCaptacio _SistemaCaptacio;
>
> public virtual System.Int16? Agregat
> {
> get
> {
> return _Agregat;
> }
> set
> {
> _Agregat = value;
> }
> }
>
> public virtual System.Int16? AnyPlanta
> {
> get
> {
> return _AnyPlanta;
> }
> set
> {
> _AnyPlanta = value;
> }
> }
>
> public virtual System.Int16? AnyRessembra
> {
> get
> {
> return _AnyRessembra;
> }
> set
> {
> _AnyRessembra = value;
> }
> }
>
> public virtual System.Int16? ArbresAillats
> {
> get
> {
> return _ArbresAillats;
> }
> set
> {
> _ArbresAillats = value;
> }
> }
>
> public virtual System.String CanviOliveres
> {
> get
> {
> return _CanviOliveres;
> }
> set
> {
> _CanviOliveres = value;
> }
> }
>
> public virtual DunDeclaracio Declaracio
> {
> get
> {
> return _Declaracio;
> }
> set
> {
> _Declaracio = value;
> }
> }
> public virtual ISet<DunRecAjut> RecinteAjuts
> {
> get
> {
> return _RecinteAjuts;
> }
> }
>
> public virtual ISet<DunRecArbre> RecinteArbres
> {
> get
> {
> return _RecinteArbres;
> }
> }
>
> public virtual DunCodisEmpresCertif EmpresCertif
> {
> get
> {
> return _EmpresCertif;
> }
> set
> {
> _EmpresCertif = value;
> }
> }
>
>
> public virtual System.String IdFinca
> {
> get
> {
> return _IdFinca;
> }
> set
> {
> Check.Require(value != null,"IdFinca must
> not be null.");
> _IdFinca = value;
> }
> }
>
>
>
> public virtual System.String IndArrencada
> {
> get
> {
> return _IndArrencada;
> }
> set
> {
> _IndArrencada = value;
> }
> }
>
> public virtual System.String IsValidat
> {
> get
> {
> return _IsValidat;
> }
> set
> {
> _IsValidat = value;
> }
> }
>
> public virtual System.Single MarcPlant1
> {
> get
> {
> return _MarcPlant1;
> }
> set
> {
> _MarcPlant1 = value;
> }
> }
>
> public virtual System.Single MarcPlant2
> {
> get
> {
> return _MarcPlant2;
> }
> set
> {
> _MarcPlant2 = value;
> }
> }
>
> public virtual System.Single MetresCamins
> {
> get
> {
> return _MetresCamins;
> }
> set
> {
> _MetresCamins = value;
> }
> }
>
> public virtual System.Single MetresMur
> {
> get
> {
> return _MetresMur;
> }
> set
> {
> _MetresMur = value;
> }
> }
>
> public virtual System.String ModSigpac
> {
> get
> {
> return _ModSigpac;
> }
> set
> {
> _ModSigpac = value;
> }
> }
>
> public virtual DunCodisMunicipiCad Municipi
> {
> get
> {
> return _Municipi;
> }
> set
> {
> _Municipi = value;
> }
> }
> public virtual System.Int32? NumPar
> {
> get
> {
> return _NumPar;
> }
> set
> {
> _NumPar = value;
> }
> }
>
> public virtual System.Int32? Parcela
> {
> get
> {
> return _Parcela;
> }
> set
> {
> _Parcela = value;
> }
> }
>
> public virtual System.Int32? ParcelFructicola
> {
> get
> {
> return _ParcelFructicola;
> }
> set
> {
> _ParcelFructicola = value;
> }
> }
>
> public virtual System.String PassaportFitosanitari
> {
> get
> {
> return _PassaportFitosanitari;
> }
> set
> {
> _PassaportFitosanitari = value;
> }
> }
>
> public virtual System.String PeusCitric
> {
> get
> {
> return _PeusCitric;
> }
> set
> {
> _PeusCitric = value;
> }
> }
>
> public virtual DunCodisPeus Peus
> {
> get
> {
> return _Peus;
> }
> set
> {
> _Peus = value;
> }
> }
>
> public virtual System.String Poligon
> {
> get
> {
> return _Poligon;
> }
> set
> {
> _Poligon = value;
> }
> }
>
> public virtual System.Int32? Recinte
> {
> get
> {
> return _Recinte;
> }
> set
> {
> _Recinte = value;
> }
> }
>
> public virtual System.String SecaRegadiu
> {
> get
> {
> return _SecaRegadiu;
> }
> set
> {
> _SecaRegadiu = value;
> }
> }
>
> public virtual DunCodisSistemaFormacio SistemaFormacio
> {
> get
> {
> return _SistemaFormacio;
> }
> set
> {
> _SistemaFormacio = value;
> }
> }
> public virtual DunCodisSistemaReg SistemaReg
> {
> get
> {
> return _SistemaReg;
> }
> set
> {
> _SistemaReg = value;
> }
> }
> public virtual System.Double? SupConreada
> {
> get
> {
> return _SupConreada;
> }
> set
> {
> _SupConreada = value;
> }
> }
>
> public virtual DunCodisTinenca Tinenca
> {
> get
> {
> return _Tinenca;
> }
> set
> {
> _Tinenca = value;
> }
> }
> public virtual DunCodisUs Us
> {
> get
> {
> return _Us;
> }
> set
> {
> _Us = value;
> }
> }
> public virtual DunCodisVarietat Varietat
> {
> get
> {
> return _Varietat;
> }
> set
> {
> _Varietat = value;
> }
> }
> public virtual System.Int16? Zona
> {
> get
> {
> return _Zona;
> }
> set
> {
> _Zona = value;
> }
> }
>
> public virtual DunCodisSistemaCaptacio SistemaCaptacio
> {
> get
> {
> return _SistemaCaptacio;
> }
> set
> {
> _SistemaCaptacio = value;
> }
> }
>
> On 14 dic, 17:42, José F. Romaniello <[email protected]> wrote:
> > Mostra CalcularIdentificacioParcela y DunRecinte (lo mas importante de
> esta
> > clase).
> >
> > Gracias.
>
> --
> Para escribir al Grupo, hágalo a esta dirección:
> [email protected]
> Para más, visite: http://groups.google.com/group/NHibernate-Hispano
>
--
Fabio Maulo
--
Para escribir al Grupo, hágalo a esta dirección:
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano
