[namespace MVCWEBAPI.Modules.MVCWEBAPI.Entities
{
[TableName("WS_SearchContent_Items")]
//setup the primary key for table
[PrimaryKey("ItemId", AutoIncrement = true)]
//configure caching using PetaPoco
[Cacheable("WS_SearchContent_Items_", CacheItemPriority.Default, 20)]
//scope the objects to the ModuleId of a module on a page (or copy of a module on a page)
[Scope("ModuleId")]
public class Item : IItemModel
{
///<summary>
/// The ID of your object with the name of the ItemName
///</summary>
public int ItemId { get; set; }
///<summary>
/// A string with the name of the ItemName
///</summary>
//[ColumnName("ItemName")]
public string ItemName { get; set; }
///<summary>
/// A string with the description of the object
///</summary>
public string ItemDescription { get; set; }
///<summary>
/// An integer with the user id of the assigned user for the object
///</summary>
public Nullable<Int32> AssignedUserId { get; set; }
///<summary>
/// The ModuleId of where the object was created and gets displayed
///</summary>
public int ModuleId { get; set; }
///<summary>
/// An integer for the user id of the user who created the object
///</summary>
public int CreatedByUserId { get; set; }
///<summary>
/// An integer for the user id of the user who last updated the object
///</summary>
public int LastModifiedByUserId { get; set; }
///<summary>
/// The date the object was created
///</summary>
public DateTime CreatedOnDate { get; set; }
///<summary>
/// The date the object was updated
///</summary>
public DateTime LastModifiedOnDate { get; set; }
}
}
]
Do I need to use any particular table , view ,sp for lucene search in my module ? or when i use Scoot API, does it effect on whole DNN
Database to make lucene search working.
Please aprove my this post ASAP. Please reply me . It would be greatly apreicated.
Thanks