Ejemplo n.º 1
0
        private List <LoginProfile> GetLinkedProfilesFromDB(string obj)
        {
            //Retrieve by uinque id
            using var db = new DbManager(dbid);
            var query = new SqlQuery("account_links")
                        .Select("profile").Where("id", obj);

            return(db.ExecuteList(query).ConvertAll(x => LoginProfile.CreateFromSerializedString((string)x[0])));
        }
Ejemplo n.º 2
0
 private List <LoginProfile> GetLinkedProfilesFromDB(string obj)
 {
     //Retrieve by uinque id
     return(AccountLinks
            .Where(r => r.Id == obj)
            .Select(r => r.Profile)
            .ToList()
            .ConvertAll(x => LoginProfile.CreateFromSerializedString(Signature, InstanceCrypto, x)));
 }
Ejemplo n.º 3
0
        private List <LoginProfile> GetLinkedProfilesFromDB(string obj)
        {
            //Retrieve by uinque id
            var db    = DbOptions.Get(DbId);
            var query = new SqlQuery("account_links")
                        .Select("profile").Where("id", obj);

            return(db.ExecuteList(query).ConvertAll(x => LoginProfile.CreateFromSerializedString(Signature, InstanceCrypto, (string)x[0])));
        }
Ejemplo n.º 4
0
 public IEnumerable <LoginProfile> GetLinkedProfiles(string obj)
 {
     //Retrieve by uinque id
     using (var db = new DbManager(dbid))
     {
         var query = new SqlQuery(LinkTable)
                     .Select("profile").Where("id", obj);
         return(db.ExecuteList(query).ConvertAll(x => LoginProfile.CreateFromSerializedString((string)x[0])));
     }
 }