private void GenerateContent()
{
try
{
nHydrate.Generator.GenerationHelper.AppendFileGeneatedMessageInCode(sb);
nHydrate.Generator.GenerationHelper.AppendCopyrightInCode(sb, _model);
this.AppendUsingStatements();
sb.AppendLine("namespace " + this.GetLocalNamespace() + ".Entity");
sb.AppendLine("{");
sb.AppendLine(" /// <summary>");
sb.AppendLine(" /// An object based on a stored procedure");
sb.AppendLine(" /// </summary>");
sb.AppendLine(" [System.CodeDom.Compiler.GeneratedCode(\"nHydrateModelGenerator\", \"" + _model.ModelToolVersion + "\")]");
sb.AppendLine(" [EdmComplexTypeAttribute(NamespaceName=\"" + this.GetLocalNamespace() + ".Entity\", Name=\"" + _item.PascalName + "\")]");
sb.AppendLine(" [DataContractAttribute(IsReference = true)]");
sb.AppendLine(" [Serializable]");
sb.AppendLine(" public partial class " + _item.PascalName + " : nHydrate.EFCore.DataAccess.NHComplexObject, nHydrate.EFCore.DataAccess.IReadOnlyBusinessObject, " + this.DefaultNamespace + ".EFDAL.Interfaces.Entity.I" + _item.PascalName + ", System.ICloneable, System.IEquatable<" + this.DefaultNamespace + ".EFDAL.Interfaces.Entity.I" + _item.PascalName + ">");
sb.AppendLine(" {");
this.AppendedFieldEnum();
this.AppendProperties();
this.AppendRegionGetValue();
this.AppendClone();
this.AppendRegionGetMaxLength();
this.AppendIsEquivalent();
this.AppendIEquatable();
sb.AppendLine(" }");
sb.AppendLine("}");
}
catch (Exception ex)
{
throw;
}
}