Questions tagged as 'nhibernate'

0
answers

Rotate nhibernate in macOS X 10.13.3 (C #)

Good morning, I'm new to the C # programming world and so I had some problems compiling a project for visual studio for mac . The problem was as follows, the project uses the nHibernate version 4.0.3 to do the database persistence, and when c...
asked by 14.03.2018 / 13:03
1
answer

How to bring all items that do not have reference to certain table [SQL]

I'm using NHibernate to do a sql query in C #, however I have a question. I have the following structure: public class Pessoa { public long Id {get; set;} public string Nome {get; set;} } public class Usuario { public long Id { //...
asked by 19.02.2018 / 19:21
0
answers

Insert with compound objects

I get this json { "Name": "Teste", "ExpirationDate": "/Date(1515703416000-0200)/", "Program": { "Id": 1 }, "Resource":{ "Id": 1 }, "InsertDate": "/Date(1515703416000-0200)/", "InsertUserId": 8, "LastUpdateDate...
asked by 15.01.2018 / 15:16
0
answers

Could not create the driver from NHibernate.Driver.OracleDataClientDriver, NHibernate, Version = 4.0.0.4000, Culture = neutral,

I'm working on an application with N Hibernate and Fluent NHibernate. I'm having problems with the settings of my App.config . I do not know exactly what's wrong with my settings. I'm getting this Exception: NHibernate.HibernateExcepti...
asked by 28.11.2017 / 13:41
1
answer

Error registering on form

When you select the value and I'm going to register, it tells me an error.    System.ArgumentException: The value "System.Object []" is not of type "BlogWeb.Models.Compra" and can not be used in this generic collection.   Parameter name: valu...
asked by 13.10.2017 / 19:26
1
answer

Stock quantity management

Personal I'm trying to do a stock control, my idea is when I consume a product it changes in the table. Ex: Estoque: Produto / Quant Caneta /5 Papel / 10 Lapis / 20 But when I separate these items for some segments in the company Segme...
asked by 28.09.2017 / 21:37
0
answers

How to leave a maskedbox

How do I leave the values as value in Reais, not a common number. Ineedthesevaluestobe2.00,ifpossible,leave$2.00MyController:publicActionResultAdiciona(AbastecimentoModelviewModel){viewModel.TotalGasto=viewModel.Litro*viewModel.VlrUnit;if(Mo...
asked by 08.09.2017 / 23:48
1
answer

Problem in returning the query

I have a problem with my return from the query. public IList<Rota> Lista() { //* string hql = "SELECT * FROM Rota WHERE ORDER BY Km_Atual ASC"; string hql = "SELECT Km_Atual, MAX(DtLancamento) FROM Rota GROUP BY I...
asked by 22.06.2017 / 20:41
1
answer

Error trying to register

Good afternoon, at the time I try to register in the form, I program in C # language with asp.net, razor and NHibernate. This is my DAO public IList<Rota> Comparacao() { //*string hql = "Select p from Rota p";...
asked by 04.07.2017 / 21:33
1
answer

FluentNHibernate.Cfg.FluentConfigurationException.GetObjectData how to solve?

I have a website that uses FluentNhibernate and now I have uploaded this site to the provider but when I try to open the site it shows me some FluentNhibernate Exceptions. This site, on my computer, works very well without any problem, but the p...
asked by 07.06.2017 / 01:56