mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Removing int Id properties from IContent descendants
Eliminates compiler warnings about hiding members of base class. --HG-- branch : dev
This commit is contained in:
@@ -86,8 +86,6 @@ namespace Orchard.Core.Tests.Body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class Thing : ContentPart {
|
public class Thing : ContentPart {
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public string Text {
|
public string Text {
|
||||||
get { return this.As<BodyPart>().Text; }
|
get { return this.As<BodyPart>().Text; }
|
||||||
set { this.As<BodyPart>().Text = value; }
|
set { this.As<BodyPart>().Text = value; }
|
||||||
|
@@ -208,8 +208,6 @@ namespace Orchard.Core.Tests.Routable.Services {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class Thing : ContentPart {
|
public class Thing : ContentPart {
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public string Title {
|
public string Title {
|
||||||
get { return this.As<RoutePart>().Title; }
|
get { return this.As<RoutePart>().Title; }
|
||||||
set { this.As<RoutePart>().Title = value; }
|
set { this.As<RoutePart>().Title = value; }
|
||||||
@@ -232,8 +230,6 @@ namespace Orchard.Core.Tests.Routable.Services {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class Stuff : ContentPart {
|
public class Stuff : ContentPart {
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public string Title {
|
public string Title {
|
||||||
get { return this.As<RoutePart>().Title; }
|
get { return this.As<RoutePart>().Title; }
|
||||||
set { this.As<RoutePart>().Title = value; }
|
set { this.As<RoutePart>().Title = value; }
|
||||||
|
@@ -11,9 +11,6 @@ namespace Orchard.Core.Localization.Models {
|
|||||||
public LazyField<CultureRecord> CultureField { get { return _culture; } }
|
public LazyField<CultureRecord> CultureField { get { return _culture; } }
|
||||||
public LazyField<IContent> MasterContentItemField { get { return _masterContentItem; } }
|
public LazyField<IContent> MasterContentItemField { get { return _masterContentItem; } }
|
||||||
|
|
||||||
[HiddenInput(DisplayValue = false)]
|
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public CultureRecord Culture {
|
public CultureRecord Culture {
|
||||||
get { return _culture.Value; }
|
get { return _culture.Value; }
|
||||||
set { _culture.Value = value; }
|
set { _culture.Value = value; }
|
||||||
|
@@ -4,9 +4,6 @@ using Orchard.ContentManagement;
|
|||||||
|
|
||||||
namespace Orchard.Core.Navigation.Models {
|
namespace Orchard.Core.Navigation.Models {
|
||||||
public class MenuItemPart : ContentPart<MenuItemPartRecord> {
|
public class MenuItemPart : ContentPart<MenuItemPartRecord> {
|
||||||
[HiddenInput(DisplayValue = false)]
|
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public string Url {
|
public string Url {
|
||||||
get { return Record.Url; }
|
get { return Record.Url; }
|
||||||
|
@@ -4,8 +4,6 @@ using Orchard.ContentManagement;
|
|||||||
|
|
||||||
namespace Orchard.Core.Navigation.Models {
|
namespace Orchard.Core.Navigation.Models {
|
||||||
public class MenuPart : ContentPart<MenuPartRecord> {
|
public class MenuPart : ContentPart<MenuPartRecord> {
|
||||||
[HiddenInput(DisplayValue = false)]
|
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public bool OnMainMenu {
|
public bool OnMainMenu {
|
||||||
get { return Record.OnMainMenu; }
|
get { return Record.OnMainMenu; }
|
||||||
|
@@ -4,9 +4,6 @@ using Orchard.Core.Routable.Models;
|
|||||||
|
|
||||||
namespace Orchard.Blogs.Models {
|
namespace Orchard.Blogs.Models {
|
||||||
public class BlogPart : ContentPart<BlogPartRecord> {
|
public class BlogPart : ContentPart<BlogPartRecord> {
|
||||||
[HiddenInput(DisplayValue = false)]
|
|
||||||
public int Id { get { return ContentItem.Id; } }
|
|
||||||
|
|
||||||
public string Name {
|
public string Name {
|
||||||
get { return this.As<RoutePart>().Title; }
|
get { return this.As<RoutePart>().Title; }
|
||||||
set { this.As<RoutePart>().Title = value; }
|
set { this.As<RoutePart>().Title = value; }
|
||||||
|
@@ -5,7 +5,6 @@ namespace Orchard.Security {
|
|||||||
/// Interface provided by the "User" model.
|
/// Interface provided by the "User" model.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IUser : IContent {
|
public interface IUser : IContent {
|
||||||
int Id { get; }
|
|
||||||
string UserName { get; }
|
string UserName { get; }
|
||||||
string Email { get; }
|
string Email { get; }
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user