Ejemplo n.º 1
0
		public static Menu CreateDefaultMenu(int position, Content parent)
		{
			return new Menu 
			{
				ContentTypeId = ContentType.MenuId,
				Content1 = parent,
				IsActive = true,
				Position = position
			};
		}
Ejemplo n.º 2
0
		public static TextContent DefaultTextContent(Content parentContent, int nextPosition)
		{
			return new TextContent
			{
				Content1 = parentContent,
				IsActive = true,
				ContentTypeId = ContentType.TextContentId,
				Position = nextPosition
			};
		}
Ejemplo n.º 3
0
 partial void DeleteContent(Content instance);
Ejemplo n.º 4
0
 partial void UpdateContent(Content instance);
Ejemplo n.º 5
0
 partial void InsertContent(Content instance);
Ejemplo n.º 6
0
		private void detach_Contents(Content entity)
		{
			this.SendPropertyChanging();
			entity.Content1 = null;
		}
Ejemplo n.º 7
0
		private void attach_Contents(Content entity)
		{
			this.SendPropertyChanging();
			entity.Content1 = this;
		}