Esempio n. 1
0
        //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);
        }
Esempio n. 2
0
 public static TagArea nohref(this TagArea tag, NoHref value)
 {
     tag.NoHref = value; return(tag);
 }
Esempio n. 3
0
 public static TagArea href(this TagArea tag, string value)
 {
     tag.Href = value; return(tag);
 }
Esempio n. 4
0
 public static TagArea onmouseup(this TagArea tag, string value)
 {
     tag.OnMouseUp = value; return(tag);
 }
Esempio n. 5
0
 public static TagArea onclick(this TagArea tag, string value)
 {
     tag.OnClick = value; return(tag);
 }
Esempio n. 6
0
 public static TagArea xmllang(this TagArea tag, string value)
 {
     tag.XmlLang = value; return(tag);
 }
Esempio n. 7
0
 public static TagArea title(this TagArea tag, string value)
 {
     tag.Title = value; return(tag);
 }
Esempio n. 8
0
 public static TagArea id(this TagArea tag, string value)
 {
     tag.Id = value; return(tag);
 }
Esempio n. 9
0
 public static TagArea accesskey(this TagArea tag, char value)
 {
     tag.AccessKey = value; return(tag);
 }
Esempio n. 10
0
 public static TagArea onkeyup(this TagArea tag, string value)
 {
     tag.OnKeyUp = value; return(tag);
 }
Esempio n. 11
0
 public static TagArea onkeydown(this TagArea tag, string value)
 {
     tag.OnKeyDown = value; return(tag);
 }
Esempio n. 12
0
 public static TagArea onkeypress(this TagArea tag, string value)
 {
     tag.OnKeyPress = value; return(tag);
 }
Esempio n. 13
0
 public static TagArea onmouseout(this TagArea tag, string value)
 {
     tag.OnMouseOut = value; return(tag);
 }
Esempio n. 14
0
 public static TagArea onmousemove(this TagArea tag, string value)
 {
     tag.OnMouseMove = value; return(tag);
 }
Esempio n. 15
0
 public static TagArea target(this TagArea tag, Target value)
 {
     tag.Target = value; return(tag);
 }
Esempio n. 16
0
 public static TagArea alt(this TagArea tag, string value)
 {
     tag.Alt = value; return(tag);
 }
Esempio n. 17
0
 public static TagArea tabindex(this TagArea tag, int value)
 {
     tag.TabIndex = value; return(tag);
 }
Esempio n. 18
0
 public static TagArea @class(this TagArea tag, string value)
 {
     tag.Class = value; return(tag);
 }
Esempio n. 19
0
 public static TagArea onfocus(this TagArea tag, string value)
 {
     tag.OnFocus = value; return(tag);
 }
Esempio n. 20
0
 public static TagArea lang(this TagArea tag, LangCode value)
 {
     tag.Lang = value; return(tag);
 }
Esempio n. 21
0
 public static TagArea onblur(this TagArea tag, string value)
 {
     tag.OnBlur = value; return(tag);
 }
Esempio n. 22
0
 public static TagArea dir(this TagArea tag, Dir value)
 {
     tag.Dir = value; return(tag);
 }
Esempio n. 23
0
 public static TagArea shape(this TagArea tag, Shape value)
 {
     tag.Shape = value; return(tag);
 }
Esempio n. 24
0
 public static TagArea coords(this TagArea tag, Length[] value)
 {
     tag.Coords = value; return(tag);
 }
Esempio n. 25
0
 public static TagArea onmousedown(this TagArea tag, string value)
 {
     tag.OnMouseDown = value; return(tag);
 }