/// <summary> /// Sets the content type identifier. /// </summary> /// <param name="id">The content type model identifier.</param> /// <param name="contentTypeId">The content type identifier.</param> public void SetContentTypeId(Guid id, int contentTypeId) { var contentType = new ContentType { Id = id, ContentTypeId = contentTypeId }; _databaseWrapper.CreateTable <ContentType>(); _databaseWrapper.Insert(contentType, id); }
/// <summary> /// Sets the definition identifier. /// </summary> /// <param name="id">The definition model identifier.</param> /// <param name="definitionId">The definition identifier.</param> public void SetDefinitionId(Guid id, int definitionId) { var dataType = new DataType { Id = id, DefinitionId = definitionId }; _databaseWrapper.CreateTable <DataType>(); _databaseWrapper.Insert(dataType, id); }