Thursday, October 28, 2010

SharePoint 2010 BCS

Good site I found is
http://www.chakkaradeep.com/post/BDC-NET-Assembly-Connector-Updating-a-BCS-Entity.aspx

Thanks a lot bro.

It is missing the CREATE/DELETE method, here it is

public static BookEntity Create(BookEntity bookEntity)
{

books.Insert(books.Count, String.Format("{0},{1},{2},{3},{4}", bookEntity.ISBN,
bookEntity.Name, bookEntity.Author, bookEntity.Price, bookEntity.Publisher));

return bookEntity;
}

public static void Delete(string parameter)
{
books.Remove(books.FirstOrDefault(s => s.Contains(parameter)));
}