Skip to content

Fix typo occured -> occurred #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Xtensive.Orm.Tracking
public readonly struct TrackingCompletedEventArgs
{
/// <summary>
/// Gets session this changes occured in.
/// Gets session this changes occurred in.
/// </summary>
public Session Session { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static bool ShouldRetryOn(Exception ex)
// The instance of SQL Server you attempted to connect to does not support encryption.
case 20:
return true;
// This exception can be thrown even if the operation completed succesfully, so it's safer to let the application fail.
// This exception can be thrown even if the operation completed successfully, so it's safer to let the application fail.
// DBNETLIB Error Code: -2
// Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.
//case -2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Message : Entity
public int Id { get; private set; }

[Field]
public bool IsRecieved { get; set; }
public bool IsReceived { get; set; }
}
}

Expand All @@ -38,18 +38,18 @@ public void MainTest()
{
using (Domain.OpenSession()) {
using (var t = Session.Current.OpenTransaction()) {
new Message {IsRecieved = true};
new Message {IsRecieved = true};
new Message {IsRecieved = false};
new Message {IsReceived = true};
new Message {IsReceived = true};
new Message {IsReceived = false};

var result = Query.All<Message>()
.GroupBy(m => m.IsRecieved)
.GroupBy(m => m.IsReceived)
.OrderBy(g => g.Key)
.Select(g => new {IsRecieved = g.Key, Count = g.Count()})
.Select(g => new {IsReceived = g.Key, Count = g.Count()})
.ToList();

var trueResult = result.Single(item => item.IsRecieved).Count;
var falseResult = result.Single(item => !item.IsRecieved).Count;
var trueResult = result.Single(item => item.IsReceived).Count;
var falseResult = result.Single(item => !item.IsReceived).Count;

Assert.AreEqual(2, trueResult);
Assert.AreEqual(1, falseResult);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace Xtensive.Orm
{
/// <summary>
/// An exception that is thrown when a connection error occured.
/// An exception that is thrown when a connection error occurred.
/// </summary>
[Serializable]
public sealed class ConnectionErrorException : StorageException
Expand Down
4 changes: 2 additions & 2 deletions Orm/Xtensive.Orm/Orm/Exceptions/StorageExceptionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ namespace Xtensive.Orm
public class StorageExceptionInfo
{
/// <summary>
/// Type in which error occured (if any).
/// Type in which error occurred (if any).
/// </summary>
public TypeInfo Type { get; private set; }
/// <summary>
/// Field in which error occured (if any).
/// Field in which error occurred (if any).
/// </summary>
public FieldInfo Field { get; private set; }
/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Orm/Xtensive.Orm/Orm/Session.Validation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public partial class Session
/// Validates all registered entities similar to <see cref="Validate"/> method
/// and returns all validation errors.
/// </summary>
/// <returns>List errors occured during validation.</returns>
/// <returns>List errors occurred during validation.</returns>
public IList<EntityErrorInfo> ValidateAndGetErrors() => ValidationContext.ValidateAndGetErrors();
}
}
4 changes: 2 additions & 2 deletions Orm/Xtensive.Orm/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Orm/Xtensive.Orm/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,8 @@
<data name="ExSequenceXIsNotFoundInStorage" xml:space="preserve">
<value>Sequence '{0}' is not found in storage.</value>
</data>
<data name="SqlErrorOccured" xml:space="preserve">
<value>SQL error occured.</value>
<data name="SqlErrorOccurred" xml:space="preserve">
<value>SQL error occurred.</value>
</data>
<data name="StorageErrorDetailsX" xml:space="preserve">
<value>Storage error details '{0}'</value>
Expand Down