public void NativeSQLQueryCollectionReturnEqualsByAlias() { var sr1 = new NativeSQLQueryCollectionReturn("myAlias", "owner", "ownerProp", null,LockMode.None); var sr2 = new NativeSQLQueryCollectionReturn("myAlias", "owner", "ownerProp", null, LockMode.None); Assert.AreEqual(sr1, sr2); }
private void ProcessCollectionReturn(NativeSQLQueryCollectionReturn collectionReturn) { // we are initializing an owned collection string role = collectionReturn.OwnerEntityName + '.' + collectionReturn.OwnerProperty; AddCollection(role, collectionReturn.Alias, collectionReturn.PropertyResultsMap); }
public void NativeSQLQueryCollectionReturnHashCodeByAlias() { var sr1 = new NativeSQLQueryCollectionReturn("myAlias", "owner", "ownerProp", null,LockMode.None); var sr2 = new NativeSQLQueryCollectionReturn("myAlias", "owner", "ownerProp", null, LockMode.None); Assert.AreEqual(sr1.GetHashCode(), sr2.GetHashCode()); }