//LiteCollection<GeoLocation> locationCollection; //LiteCollection<TagArea> tagCollection; public TrainerDb(string path) { db = new LiteDatabase(path); mediaCollection = db.GetCollection <MediaDetails>("media"); //locationCollection = db.GetCollection<GeoLocation>("locations"); //tagCollection = db.GetCollection<TagArea>("tags"); BsonMapper.Global.RegisterType <TagArea> ( serialize: (tag) => tag.ToString(), deserialize: (bson) => TagArea.Parse(bson.AsString) ); BsonMapper.Global.RegisterType <GeoLocation> ( serialize: (loc) => loc.ToString(), deserialize: (bson) => GeoLocation.Parse(bson.AsString) ); BsonMapper.Global.Entity <MediaDetails>() .Id(x => x.Id) .Ignore(x => x.FullPath) .Ignore(x => x.FullPreviewPath); }
public static TagArea nohref(this TagArea tag, NoHref value) { tag.NoHref = value; return(tag); }
public static TagArea href(this TagArea tag, string value) { tag.Href = value; return(tag); }
public static TagArea onmouseup(this TagArea tag, string value) { tag.OnMouseUp = value; return(tag); }
public static TagArea onclick(this TagArea tag, string value) { tag.OnClick = value; return(tag); }
public static TagArea xmllang(this TagArea tag, string value) { tag.XmlLang = value; return(tag); }
public static TagArea title(this TagArea tag, string value) { tag.Title = value; return(tag); }
public static TagArea id(this TagArea tag, string value) { tag.Id = value; return(tag); }
public static TagArea accesskey(this TagArea tag, char value) { tag.AccessKey = value; return(tag); }
public static TagArea onkeyup(this TagArea tag, string value) { tag.OnKeyUp = value; return(tag); }
public static TagArea onkeydown(this TagArea tag, string value) { tag.OnKeyDown = value; return(tag); }
public static TagArea onkeypress(this TagArea tag, string value) { tag.OnKeyPress = value; return(tag); }
public static TagArea onmouseout(this TagArea tag, string value) { tag.OnMouseOut = value; return(tag); }
public static TagArea onmousemove(this TagArea tag, string value) { tag.OnMouseMove = value; return(tag); }
public static TagArea target(this TagArea tag, Target value) { tag.Target = value; return(tag); }
public static TagArea alt(this TagArea tag, string value) { tag.Alt = value; return(tag); }
public static TagArea tabindex(this TagArea tag, int value) { tag.TabIndex = value; return(tag); }
public static TagArea @class(this TagArea tag, string value) { tag.Class = value; return(tag); }
public static TagArea onfocus(this TagArea tag, string value) { tag.OnFocus = value; return(tag); }
public static TagArea lang(this TagArea tag, LangCode value) { tag.Lang = value; return(tag); }
public static TagArea onblur(this TagArea tag, string value) { tag.OnBlur = value; return(tag); }
public static TagArea dir(this TagArea tag, Dir value) { tag.Dir = value; return(tag); }
public static TagArea shape(this TagArea tag, Shape value) { tag.Shape = value; return(tag); }
public static TagArea coords(this TagArea tag, Length[] value) { tag.Coords = value; return(tag); }
public static TagArea onmousedown(this TagArea tag, string value) { tag.OnMouseDown = value; return(tag); }