Exemplo n.º 1
0
 /// <summary>
 /// Enum types are equal by primary key
 /// </summary>
 public bool Equals(JsonImportStatusType other)
 {
     if (other == null)
     {
         return(false);
     }
     return(other.JsonImportStatusTypeID == JsonImportStatusTypeID);
 }
 /// <summary>
 /// Creates a "blank" object of this type and populates primitives with defaults
 /// </summary>
 public static SocrataDataMartRawJsonImport CreateNewBlank(SocrataDataMartRawJsonImportTableType socrataDataMartRawJsonImportTableType, JsonImportStatusType jsonImportStatusType)
 {
     return(new SocrataDataMartRawJsonImport(default(DateTime), socrataDataMartRawJsonImportTableType, default(string), jsonImportStatusType));
 }
 /// <summary>
 /// Constructor for building a new object with MinimalConstructor required fields, using objects whenever possible
 /// </summary>
 public SocrataDataMartRawJsonImport(DateTime createDate, SocrataDataMartRawJsonImportTableType socrataDataMartRawJsonImportTableType, string rawJsonString, JsonImportStatusType jsonImportStatusType) : this()
 {
     // Mark this as a new object by setting primary key with special value
     this.SocrataDataMartRawJsonImportID = ModelObjectHelpers.MakeNextUnsavedPrimaryKeyValue();
     this.CreateDate = createDate;
     this.SocrataDataMartRawJsonImportTableTypeID = socrataDataMartRawJsonImportTableType.SocrataDataMartRawJsonImportTableTypeID;
     this.RawJsonString          = rawJsonString;
     this.JsonImportStatusTypeID = jsonImportStatusType.JsonImportStatusTypeID;
 }