public static Menu CreateDefaultMenu(int position, Content parent) { return new Menu { ContentTypeId = ContentType.MenuId, Content1 = parent, IsActive = true, Position = position }; }
public static TextContent DefaultTextContent(Content parentContent, int nextPosition) { return new TextContent { Content1 = parentContent, IsActive = true, ContentTypeId = ContentType.TextContentId, Position = nextPosition }; }
partial void DeleteContent(Content instance);
partial void UpdateContent(Content instance);
partial void InsertContent(Content instance);
private void detach_Contents(Content entity) { this.SendPropertyChanging(); entity.Content1 = null; }
private void attach_Contents(Content entity) { this.SendPropertyChanging(); entity.Content1 = this; }