public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || GetType() != o.GetType()) { return(false); } Net.Vpc.Upa.Impl.Persistence.DatabaseIdentityPersister that = (Net.Vpc.Upa.Impl.Persistence.DatabaseIdentityPersister)o; if (!field.Equals(that.field)) { return(false); } return(true); }
public override bool Equals(object o) { if (this == o) { return(true); } if (!(o is Net.Vpc.Upa.Impl.Persistence.TableSequenceIdentityPersister)) { return(false); } Net.Vpc.Upa.Impl.Persistence.TableSequenceIdentityPersister that = (Net.Vpc.Upa.Impl.Persistence.TableSequenceIdentityPersister)o; if (allocationSize != that.allocationSize) { return(false); } if (initialValue != that.initialValue) { return(false); } if (field != null ? !field.Equals(that.field) : that.field != null) { return(false); } if (format != null ? !format.Equals(that.format) : that.format != null) { return(false); } if (group != null ? !group.Equals(that.group) : that.group != null) { return(false); } if (name != null ? !name.Equals(that.name) : that.name != null) { return(false); } return(true); }
public virtual System.Collections.Generic.IList <Net.Vpc.Upa.Relationship> GetManyToOneRelationships() { System.Collections.Generic.IList <Net.Vpc.Upa.Relationship> relations = new System.Collections.Generic.List <Net.Vpc.Upa.Relationship>(); foreach (Net.Vpc.Upa.Relationship r in GetPersistenceUnit().GetRelationshipsBySource(GetEntity())) { Net.Vpc.Upa.Field entityField = r.GetSourceRole().GetEntityField(); if (entityField != null && entityField.Equals(this)) { relations.Add(r); } else { System.Collections.Generic.IList <Net.Vpc.Upa.Field> fields = r.GetSourceRole().GetFields(); foreach (Net.Vpc.Upa.Field field in fields) { if (field.Equals(this)) { relations.Add(r); } } } } return(relations); }