Application definition was successfully imported, but Entity X has no identifiers defined in the SpecificFinder view.
-
Hi i created a web service with two method that will be call via sharepoint bdc. my problem is that adf file was successfully imported but it has a warning :
Application definition was successfully imported. 1 warning(s) found. Consider fixing the warnings and updating the application definition.
Warning :
Could not create profile page for Entity News. The error is: Profile page creation for the Entity News skipped. Entity News has no identifiers defined in the SpecificFinder viewHere is my web service :
[WebMethod]
public List<News> GetNews()
{
List<News> list = new List<News>();
using (MySqlConnection con = new MySqlConnection(ConfigurationManager.ConnectionStrings["MySqlConnectionString"].ConnectionString))
{
using (MySqlCommand cmd = con.CreateCommand())
{
cmd.CommandText = "select id,title,introText,created from jos_content order by created desc,id desc";if (con.State != System.Data.ConnectionState.Open) con.Open(); MySqlDataReader dr = cmd.ExecuteReader(); while(dr.Read()) { list.Add(new News(dr.GetInt32(0), dr.GetString(1), dr.GetString(2), dr.GetString(3))); } dr.Close(); if (con.State != System.Data.ConnectionState.Closed) con.Close(); } } return list; } \[WebMethod\] public List<News> GetNewsByID(int id) { List<News> list = new List<News>(); using (MySqlConnection con = new MySqlConnection(ConfigurationManager.ConnectionStrings\["MySqlConnectionString"\].ConnectionString)) { using (MySqlCommand cmd = con.CreateCommand()) { cmd.CommandText = "select id,title,introText,created from jos\_content where id=@id order by created desc,id desc"; cmd.Parameters.Add(new MySqlParameter("@id", id)); if (con.State != System.Data.ConnectionState.Open) con.Open(); MySqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { list.Add(new News(dr.GetInt32(0), dr.GetString(1), dr.GetString(2), dr.GetString(3))); } dr.Close(); if (con.State != System.Data.ConnectionState.Closed)