从控制台编辑Firebase文件元数据(Edit Firebase Files Metadata From The Console)
我知道可以编程方式编辑Firebase元数据,如下所述: https ://firebase.google.com/docs/storage/android/file-metadata
但对我来说,直接从Firebase控制台添加一些值要容易得多,但我似乎无法找到任何方法。
I know that Firebase metadata can be eddited programatically, as described here: https://firebase.google.com/docs/storage/android/file-metadata
But for me it would be a lot easier to add some values directly from the Firebase console, but I can't seem to find any way to do that.
原文:https://stackoverflow.com/questions/38306571
最满意答案
我宁愿按照以下方式简化它
(from at in address_types join a in address on at.addresstype equals a.addresstype into tt from ar in tt.DefaultIfEmpty() where (ar != null && ar.addressid == 24) select new { at.Description, ar.Address1, ar.Address2, ar.City })
我们不需要这个检查“(ja == null)”的原因是因为我们已经在这行“where(ar!= null && ar.addressid == 24)”中限制了我们的集合。
同时这个查询有效,我的POV是在SQL查询中LEFT JOIN也是多余的。 由于您的条件“a.addressid = 24”,您将不会获得NULL行,因此可以将SQL重写为INNER JOIN和LINQ查询以及
(from at in address_types join a in address on at.addresstype equals a.addresstype where at.addressid == 24 select new { at.Description, a.Address1, a.Address2, a.City })
I would rather simplify it in following way
(from at in address_types join a in address on at.addresstype equals a.addresstype into tt from ar in tt.DefaultIfEmpty() where (ar != null && ar.addressid == 24) select new { at.Description, ar.Address1, ar.Address2, ar.City })
The reason why we don't need this check "(ja == null)" is because we already restricted our set in this line "where (ar != null && ar.addressid == 24)".
Meanwhile this query works, my POV is that LEFT JOIN is also redundant here in the SQL query. You will not get NULL rows due to your condition "a.addressid = 24" so SQL can be rewritten to INNER JOIN and LINQ query as well to
(from at in address_types join a in address on at.addresstype equals a.addresstype where at.addressid == 24 select new { at.Description, a.Address1, a.Address2, a.City })
相关问答
更多-
我认为你可以使用类似的方法做到这一点: var subQuery = from a in answers group a by a.QuestionID into grouping select new { QuestionID = grouping.Key, MaxAnswerID = grouping.Max(x => x.An ...
-
这应该有所帮助; dataContext是Entity Framework container实例的名称。 var result = dataContext.MTRBatches .Join(dataContext.MTRs, mb => mb.Id, mtr => mtr.MTRBatchId, (mb, mtr) => new{ Batch = mb, MTR = mtr }) .Join(dataContext.MTRHeats, ...
-
Lambda表达(Lambda to Expression)[2022-04-22]
这是Expression.Lambda(body) 。 I finally succeeded. It was the problem that NHibernate was parsing obj1.propert1.propert2 because of localy scoped lambda expression. Because of this, I had to create code to create new class at runtime and pass it to the metho ... -
我想这就是你所追求的: 查询语法 var members = new List
{ new Member {MemberId = 1, MemberExternalPk = 100}, new Member {MemberId = 2, MemberExternalPk = 200} }; var accounts = new List { new Account {AccountId = 1, MemberId = 1} }; var quer ... -
如何将此sql请求转换为Lambda表达式或LINQ(How to convert this sql request to Lambda expression or LINQ)[2023-01-01]
希望能帮助到你: var query = from pc in Context.PrelevementClient join ci in Context.ContratIBAN on pc.IDCMPT equals ci.IDCMPT into ciLeft from ci in ciLeft.DefaultIfEmpty() join co in Context.Contrat on ci.nocontrat equals co.n ... -
如何将此SQL查询转换为LINQ或Lambda表达式?(How to convert this SQL query to LINQ or Lambda expression?)[2023-03-26]
这可能会做你想要的: Layout .Where(x => Position .Where(y => y.Code == "TopMenu") .Select(y => SqlClient.SqlMethods.Like(x.PositionID, "%" + y.ID.ToString() + "%") ).Count() > 0 ).Join( Category, x => x.CategoryID, ... -
当学生是动态的时,意味着您需要结果行的结果类,如下所示: class ResultRow { public ResultRow() { Students = new Dictionary
(); } public string Class { get; set; } public IDictionary Students { get; set; } } 因为您需要为学生提供动态列。 现 ... -
我宁愿按照以下方式简化它 (from at in address_types join a in address on at.addresstype equals a.addresstype into tt from ar in tt.DefaultIfEmpty() where (ar != null && ar.addressid == 24) select new { at.Description, ar.Address1, ar.Address2, ar ...
-
在LINQ to Entities中使用显式join通常是一个错误。 而是使用导航属性: var q = Context.TableAs.Select(a => new { a.Foo, a.TableB.Bar }); LINQ to Entities将合并空引用。 因此,如果a.TableB对于a.TableB中的某些记录为null ,则a.TableB.Bar将返回null而不是为您提供空引用异常。 所以它的行为类似于SQL LEFT JOIN It's usually an error to us ...
-
由同一Linq和Lambda表达式生成的两个不同的SQL语句(Two different SQL statement generated by same Linq and Lambda expression)[2022-02-19]
这根本不是同一个查询 - 你已经在lambda表达式版本中得到了SelectMany ,但是你还没有得到SelectMany对应的SelectMany : from results in Cps.DefaultIfEmpty() 由于引入了透明标识符,确切的查询转换会变得有点复杂,但我确信这是不同的。 It's not the same query at all - you've got the GroupJoin in the lambda expression version, sure - but ...