in order to use EF7 commands

This commit is contained in:
Paul Schneider 2018-04-18 18:15:40 +02:00
commit 4b6958e8e9
474 changed files with 316 additions and 181 deletions

View file

@ -1,31 +0,0 @@
namespace Yavsc.ViewModels.Blogspot
{
public class BlogIndexKey
{
public string AuthorId { get; set; }
public string Title { get; set; }
// override object.Equals
public override bool Equals (object obj)
{
//
// See the full list of guidelines at
// http://go.microsoft.com/fwlink/?LinkID=85237
// and also the guidance for operator== at
// http://go.microsoft.com/fwlink/?LinkId=85238
//
if (obj == null || GetType() != obj.GetType())
{
return false;
}
var blogindexkey = (BlogIndexKey)obj;
return Title == blogindexkey.Title && AuthorId == blogindexkey.AuthorId;
}
// override object.GetHashCode
public override int GetHashCode()
{
return Title.GetHashCode() * AuthorId.GetHashCode();
}
}
}