/// <summary> /// Gets the value of one of this object's properties. /// </summary> public string GetString(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field, string defaultValue) { var o = this.GetValue(field, defaultValue); if (o is string) { return((string)o); } else { return(o.ToString()); } }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public System.DateTime GetDateTime(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field, System.DateTime defaultValue) { var o = this.GetValue(field, defaultValue); if (o is string) { System.DateTime a; if (System.DateTime.TryParse((string)o, out a)) { return(a); } else { throw new System.InvalidCastException(); } } else { return((System.DateTime)o); } }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public int GetInteger(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field, int defaultValue) { var o = this.GetValue(field, defaultValue); if (o is string) { int a; if (int.TryParse((string)o, out a)) { return(a); } else { throw new System.InvalidCastException(); } } else { return((int)o); } }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public string GetString(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field) { return(this.GetString(field, string.Empty)); }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public System.DateTime GetDateTime(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field) { return(this.GetDateTime(field, System.DateTime.MinValue)); }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public double GetDouble(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field) { return(this.GetDouble(field, double.MinValue)); }
/// <summary> /// Gets the value of one of this object's properties. /// </summary> public int GetInteger(Acme.Northwind.EFDAL.Entity.OrderSubtotals.FieldNameConstants field) { return(this.GetInteger(field, int.MinValue)); }