Tuesday, April 5, 2011

Interface Manual

The Model has 7 important signatures: 4 member functions and 3 static functions of KnotModel class.
public KnotModel(): Initializes the knot model.
public void Add(): Add the knot instance into database.
public void Update(): Update the knot instance into database.
public void Save(string filename): Saves the knot into XML file.
public static List<KnotModel> GetAll(): Gets the all knot list from database.
public static KnotModel GetById(Guid id): Gets the knot by specified ID from database.
public static KnotModel Load(string filename): Loads knot form XML file.

No comments:

Post a Comment