public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (Class == null ? 0 : Class.GetHashCode()); hash = hash * 23 + (Color == null ? 0 : Color.GetHashCode()); hash = hash * 23 + (DaysToManufacture == default(int) ? 0 : DaysToManufacture.GetHashCode()); hash = hash * 23 + (DiscontinuedDate == null ? 0 : DiscontinuedDate.GetHashCode()); hash = hash * 23 + (FinishedGoodsFlag == default(bool) ? 0 : FinishedGoodsFlag.GetHashCode()); hash = hash * 23 + (ListPrice == default(decimal) ? 0 : ListPrice.GetHashCode()); hash = hash * 23 + (MakeFlag == default(bool) ? 0 : MakeFlag.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (ProductLine == null ? 0 : ProductLine.GetHashCode()); hash = hash * 23 + (ProductModelId == null ? 0 : ProductModelId.GetHashCode()); hash = hash * 23 + (ProductNumber == null ? 0 : ProductNumber.GetHashCode()); hash = hash * 23 + (ProductSubcategoryId == null ? 0 : ProductSubcategoryId.GetHashCode()); hash = hash * 23 + (ReorderPoint == default(short) ? 0 : ReorderPoint.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SafetyStockLevel == default(short) ? 0 : SafetyStockLevel.GetHashCode()); hash = hash * 23 + (SellEndDate == null ? 0 : SellEndDate.GetHashCode()); hash = hash * 23 + (SellStartDate == default(DateTime) ? 0 : SellStartDate.GetHashCode()); hash = hash * 23 + (Size == null ? 0 : Size.GetHashCode()); hash = hash * 23 + (SizeUnitMeasureCode == null ? 0 : SizeUnitMeasureCode.GetHashCode()); hash = hash * 23 + (StandardCost == default(decimal) ? 0 : StandardCost.GetHashCode()); hash = hash * 23 + (Style == null ? 0 : Style.GetHashCode()); hash = hash * 23 + (Weight == null ? 0 : Weight.GetHashCode()); hash = hash * 23 + (WeightUnitMeasureCode == null ? 0 : WeightUnitMeasureCode.GetHashCode()); return(hash); } }
public JObject ToJson() { JObject json = new JObject(); json["id"] = ID; json["trashId"] = TrashID; json["latitude"] = Latitude; json["longitude"] = Longitude; json["continent"] = Continent; json["country"] = Country; json["administrativeArea1"] = AdministrativeArea1; json["administrativeArea2"] = AdministrativeArea2; json["administrativeArea3"] = AdministrativeArea3; json["locality"] = Locality; json["subLocality"] = SubLocality; json["description"] = Description; json["comment"] = Comment; json["modifiedDate"] = ModifiedDate.ToString("MM/dd/yyyy HH:mm:ss"); json["status"] = Status; json["size"] = Size; json["url"] = Url; json["images"] = JArray.Parse(Images); json["types"] = JArray.Parse(Type); json["assigneeId"] = AssigneeID; json["sectionId"] = SectionID; return(json); }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode( ) { int hash = 13; hash = hash * 7 + Id.GetHashCode( ); if (Name != null) { hash = hash * 7 + Name.GetHashCode( ); } if (Description != null) { hash = hash * 7 + Description.GetHashCode( ); } if (CreatedDate != null) { hash = hash * 7 + CreatedDate.GetHashCode( ); } if (ModifiedDate != null) { hash = hash * 7 + ModifiedDate.GetHashCode( ); } return(hash); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (AccountNumber == null ? 0 : AccountNumber.GetHashCode()); hash = hash * 23 + (BillToAddressId == default(int) ? 0 : BillToAddressId.GetHashCode()); hash = hash * 23 + (Comment == null ? 0 : Comment.GetHashCode()); hash = hash * 23 + (CreditCardApprovalCode == null ? 0 : CreditCardApprovalCode.GetHashCode()); hash = hash * 23 + (CreditCardId == null ? 0 : CreditCardId.GetHashCode()); hash = hash * 23 + (CurrencyRateId == null ? 0 : CurrencyRateId.GetHashCode()); hash = hash * 23 + (CustomerId == default(int) ? 0 : CustomerId.GetHashCode()); hash = hash * 23 + (DueDate == default(DateTime) ? 0 : DueDate.GetHashCode()); hash = hash * 23 + (Freight == default(decimal) ? 0 : Freight.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (OnlineOrderFlag == default(bool) ? 0 : OnlineOrderFlag.GetHashCode()); hash = hash * 23 + (OrderDate == default(DateTime) ? 0 : OrderDate.GetHashCode()); hash = hash * 23 + (PurchaseOrderNumber == null ? 0 : PurchaseOrderNumber.GetHashCode()); hash = hash * 23 + (RevisionNumber == default(byte) ? 0 : RevisionNumber.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SalesOrderNumber == null ? 0 : SalesOrderNumber.GetHashCode()); hash = hash * 23 + (SalesPersonId == null ? 0 : SalesPersonId.GetHashCode()); hash = hash * 23 + (ShipDate == null ? 0 : ShipDate.GetHashCode()); hash = hash * 23 + (ShipMethodId == default(int) ? 0 : ShipMethodId.GetHashCode()); hash = hash * 23 + (ShipToAddressId == default(int) ? 0 : ShipToAddressId.GetHashCode()); hash = hash * 23 + (Status == default(byte) ? 0 : Status.GetHashCode()); hash = hash * 23 + (SubTotal == default(decimal) ? 0 : SubTotal.GetHashCode()); hash = hash * 23 + (TaxAmt == default(decimal) ? 0 : TaxAmt.GetHashCode()); hash = hash * 23 + (TerritoryId == null ? 0 : TerritoryId.GetHashCode()); hash = hash * 23 + (TotalDue == default(decimal) ? 0 : TotalDue.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (DatabaseVersion == null ? 0 : DatabaseVersion.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (VersionDate == default(DateTime) ? 0 : VersionDate.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == null ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Resume == null ? 0 : Resume.GetHashCode()); return(hash); } }
public EntityBase(CreatedDate createdDate, ModifiedDate modifiedDate, DataState dataState) { _ = createdDate ?? throw new ArgumentException("Cannot be null.", "createdDate"); _ = modifiedDate ?? throw new ArgumentException("Cannot be null.", "modifiedDate"); CreatedDate = createdDate; ModifiedDate = modifiedDate; DataState = dataState; }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SpecialOfferId == default(int) ? 0 : SpecialOfferId.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (EmailAddress1 == null ? 0 : EmailAddress1.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public List <string[]> ToArrayList() { var name = string.IsNullOrEmpty(ParameterName) ? string.Format("{0}.{1}", SchemaName, Name) : string.Format("{0}.{1}.{2}", SchemaName, Name, ParameterName); var result = new List <string[]> { new[] { "Name:", name }, new[] { "Created:", CreatedDate.ToString(CultureInfo.CurrentCulture) }, new[] { "Modified:", ModifiedDate.ToString(CultureInfo.CurrentCulture) }, }; return(result); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (Availability == default(decimal) ? 0 : Availability.GetHashCode()); hash = hash * 23 + (CostRate == default(decimal) ? 0 : CostRate.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Primary == default(bool) ? 0 : Primary.GetHashCode()); hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode()); hash = hash * 23 + (ProductPhotoId == default(int) ? 0 : ProductPhotoId.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (ProductCategoryId == default(int) ? 0 : ProductCategoryId.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (EndDate == null ? 0 : EndDate.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode()); hash = hash * 23 + (StandardCost == default(decimal) ? 0 : StandardCost.GetHashCode()); hash = hash * 23 + (StartDate == default(DateTime) ? 0 : StartDate.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (ShipBase == default(decimal) ? 0 : ShipBase.GetHashCode()); hash = hash * 23 + (ShipRate == default(decimal) ? 0 : ShipRate.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = ModuleId; hashCode = (hashCode * 397) ^ (Name == null ? 0 : Name.GetHashCode()); hashCode = (hashCode * 397) ^ (Version == null ? 0 : Version.GetHashCode()); hashCode = (hashCode * 397) ^ IsEntry.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ModifiedDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Data == null ? 0 : Data.GetCollectionHashCode()); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (DateCreated == default(DateTime) ? 0 : DateCreated.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ProductId == default(int) ? 0 : ProductId.GetHashCode()); hash = hash * 23 + (Quantity == default(int) ? 0 : Quantity.GetHashCode()); hash = hash * 23 + (ShoppingCartId == null ? 0 : ShoppingCartId.GetHashCode()); return(hash); } }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(ID.ToString() + ","); sb.Append(FullFileName + ","); sb.Append(Extension + ","); sb.Append(Size.ToString() + ","); sb.Append(CreatedDate.ToString() + ","); sb.Append(ModifiedDate.ToString() + ","); sb.Append(Other.ToString()); return(sb.ToString()); }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (ContactTypeId == default(int) ? 0 : ContactTypeId.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (PersonId == default(int) ? 0 : PersonId.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (PayFrequency == default(byte) ? 0 : PayFrequency.GetHashCode()); hash = hash * 23 + (Rate == default(decimal) ? 0 : Rate.GetHashCode()); hash = hash * 23 + (RateChangeDate == default(DateTime) ? 0 : RateChangeDate.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (QuotaDate == default(DateTime) ? 0 : QuotaDate.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SalesQuota == default(decimal) ? 0 : SalesQuota.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (LargePhoto == null ? 0 : LargePhoto.GetHashCode()); hash = hash * 23 + (LargePhotoFileName == null ? 0 : LargePhotoFileName.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ThumbNailPhoto == null ? 0 : ThumbNailPhoto.GetHashCode()); hash = hash * 23 + (ThumbnailPhotoFileName == null ? 0 : ThumbnailPhotoFileName.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (CatalogDescription == null ? 0 : CatalogDescription.GetHashCode()); hash = hash * 23 + (Instructions == null ? 0 : Instructions.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (PasswordHash == null ? 0 : PasswordHash.GetHashCode()); hash = hash * 23 + (PasswordSalt == null ? 0 : PasswordSalt.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = ModuleId; hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Version?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsEntry.GetHashCode(); hashCode = (hashCode * 397) ^ CreatedDate.GetHashCode(); hashCode = (hashCode * 397) ^ ModifiedDate.GetHashCode(); hashCode = (hashCode * 397) ^ (Data?.GetCollectionHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (StateProvinceId == default(int) ? 0 : StateProvinceId.GetHashCode()); hash = hash * 23 + (TaxRate == default(decimal) ? 0 : TaxRate.GetHashCode()); hash = hash * 23 + (TaxType == default(byte) ? 0 : TaxType.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (AverageRate == default(decimal) ? 0 : AverageRate.GetHashCode()); hash = hash * 23 + (CurrencyRateDate == default(DateTime) ? 0 : CurrencyRateDate.GetHashCode()); hash = hash * 23 + (EndOfDayRate == default(decimal) ? 0 : EndOfDayRate.GetHashCode()); hash = hash * 23 + (FromCurrencyCode == null ? 0 : FromCurrencyCode.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (ToCurrencyCode == null ? 0 : ToCurrencyCode.GetHashCode()); return(hash); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + (BusinessEntityId == default(int) ? 0 : BusinessEntityId.GetHashCode()); hash = hash * 23 + (Demographics == null ? 0 : Demographics.GetHashCode()); hash = hash * 23 + (ModifiedDate == default(DateTime) ? 0 : ModifiedDate.GetHashCode()); hash = hash * 23 + (Name == null ? 0 : Name.GetHashCode()); hash = hash * 23 + (Rowguid == default(Guid) ? 0 : Rowguid.GetHashCode()); hash = hash * 23 + (SalesPersonId == null ? 0 : SalesPersonId.GetHashCode()); return(hash); } }