/// <summary> /// Constructs an instance of this CodonNucleotideRowSerializableContainer from the given CodonNucleotideRow. /// </summary> /// <param name="codonNucleotideRow">Ties a Nucleotide to a Codon</param> public CodonNucleotideRowSerializableContainer(global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRows.CodonNucleotideRow codonNucleotideRow) : this() { this.PK_CodonNucleotideID = codonNucleotideRow.PK_CodonNucleotideID; this.Codon = codonNucleotideRow.Codon; this.Nucleotide = codonNucleotideRow.Nucleotide; this.GeneticCode = codonNucleotideRow.GeneticCode; if (!codonNucleotideRow.IsCodonRowNull) this.CodonRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.CodonRowSerializableContainer(codonNucleotideRow.CodonRow); if (!codonNucleotideRow.IsNucleotideRowNull) this.NucleotideRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.NucleotideRowSerializableContainer(codonNucleotideRow.NucleotideRow); if (!codonNucleotideRow.IsGeneticCodeRowNull) this.GeneticCodeRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.GeneticCodeRowSerializableContainer(codonNucleotideRow.GeneticCodeRow); }
/// <summary> /// Constructs an instance of this GeneticCodeRowSerializableContainer from the given GeneticCodeRow. /// </summary> /// <param name="geneticCodeRow">The rules to which an Organism must abide.</param> public GeneticCodeRowSerializableContainer(global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRows.GeneticCodeRow geneticCodeRow) : this() { this.PK_GeneticCodeID = geneticCodeRow.PK_GeneticCodeID; this.Name = geneticCodeRow.Name; this.CodonLength = geneticCodeRow.CodonLength; this.MaxParameterfulFunctionsInDNA = geneticCodeRow.MaxParameterfulFunctionsInDNA; this.MaximumFunctionInputsUsed = geneticCodeRow.MaximumFunctionInputsUsed; this.MaxRecursionLevel = geneticCodeRow.MaxRecursionLevel; if (!geneticCodeRow.IsForeignKeyRow_TheFunction_GeneticCodeRowNull) this.ForeignKeyRow_TheFunction_GeneticCodeRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.TheFunctionRowSerializableContainer(geneticCodeRow.ForeignKeyRow_TheFunction_GeneticCodeRow); if (!geneticCodeRow.IsForeignKeyRow_CodonConverter_GeneticCodeRowNull) this.ForeignKeyRow_CodonConverter_GeneticCodeRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.CodonConverterRowSerializableContainer(geneticCodeRow.ForeignKeyRow_CodonConverter_GeneticCodeRow); if (!geneticCodeRow.IsForeignKeyRow_Codon_GeneticCodeRowNull) this.ForeignKeyRow_Codon_GeneticCodeRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.CodonRowSerializableContainer(geneticCodeRow.ForeignKeyRow_Codon_GeneticCodeRow); if (!geneticCodeRow.IsForeignKeyRow_Nucleotide_GeneticCodeRowNull) this.ForeignKeyRow_Nucleotide_GeneticCodeRowSerializableContainer = new global::GeneticFaradayDatabaseLibrary.GeneticFaradayDatabase.StrongRowSerializableContainers.NucleotideRowSerializableContainer(geneticCodeRow.ForeignKeyRow_Nucleotide_GeneticCodeRow); }