Quantcast
Channel: User mykhailovskyi - Stack Overflow
Browsing all 29 articles
Browse latest View live

Comment by mykhailovskyi on How to add field not mapped to table in Linq to Sql

@TheUknown, I can create and I did it in the same namespace in partial class, so I just extended auto generated class. But properties without Column attribute are not mapped and always contain default...

View Article



Comment by mykhailovskyi on Visual Studio 2015 Update 3 Offline Installer (ISO)

beta domain is no longer available. You can download installer (offline as well) by the next link: visualstudio.com/downloads/download-visual-studio-vs

View Article

Comment by mykhailovskyi on Applying border to a checkbox in Chrome

The best solution I found. Thanks.

View Article

Comment by mykhailovskyi on ASP.NET MVC Identity:how do I Extend...

Have you found any solution how to do that?

View Article

Comment by mykhailovskyi on Best practice to implement a sort property

Sorry, accidentally put same property name. Just updated.

View Article


Comment by mykhailovskyi on Mysql is not appearing in "Choose Data Source"...

You saved my day. I got a headache trying to generate contect for MySQL database. Thanks. P.S. What is important to follow step by step. Also it's needed to add references directly from the installed...

View Article

Comment by mykhailovskyi on Nice & universal way to convert List of items to...

In order to avoid duplicates you would need only first level nodes: categories.Where(n => n.ParentId == 0)

View Article

Comment by mykhailovskyi on ReactJS: Render dynamic Component and pass props

@MattWay, please have a look at the updated question.

View Article


Comment by mykhailovskyi on ReactJS: Render dynamic Component and pass props

thank you for your answer. Can you also clarify one thing here? The generic type is never known and I would need to define the type of public static defaultProps: IDataGridCellProps<T> . How to...

View Article


Comment by mykhailovskyi on EF Cannot insert explicit value for identity...

thanks for quick answer. That's partially true what you said. But I changed on EDMX diagram behavior for Id column.

View Article

Comment by mykhailovskyi on Redis compression technique

@JK I don't have much experience working with redis and believe given example is not the best, however I did not find any valuable information in google. So I can change the question to something like:...

View Article

Answer by mykhailovskyi for How to create HTML valid table with form inside rows

I think I have understood what do you need. You can make one simple table and into each row put only one td which keep form. Something like this: <table> @{ foreach (var item in...

View Article

Answer by mykhailovskyi for Html.ActionLink onclick JavaScript function is...

You add onclick handler in wrong place. You must put it in Html Attributes block instead Route values. Try it: <p>@Html.ActionLink("Call number", "Call", new { id = Model.Id, number =...

View Article


Answer by mykhailovskyi for ASP.NET MVC Checboxes disabling/enabling textboxes

You may set counter and create unique class or some attribute for each block. For example: <table id="myTable"> @{ int c = 0; for(int i = 0; i < Model.Count; i++) { c++; <tr...

View Article

Answer by mykhailovskyi for Replacing text inside span through CSS or JS

You can do it using jQuery: $(function(){ $('span.pluginButtonLabel').text('my text'); // end put here same for each span you need }) here is a demo. Same functionality using plain JavaScript:...

View Article


Answer by mykhailovskyi for How to identify whether List is a list of Ts that...

If I understood you correctly you have to do something like this: Type paramType = typeof(T); if(paramType is IMedia) { /*do smt*/ }

View Article

Answer by mykhailovskyi for How to add condition to output in MVC?

@(string.Format("{0}", Model.Toxin[i].intake_link[0].Length > 30 ?Model.Toxin[i].intake_link[0].Substring(0, 30) : Model.Toxin[i].intake_link[0]) But I suggest you write some string extension and...

View Article


Unable to update cookies in asp.net mvc

I can write and read cookies but I can't change value for existing cookie it always has first set value. I found few ways how it can be implemented but no one works. Here is my code: private void...

View Article

Convert array of bytes into GUID while filling DataTable

I try to retreive data from Oracle db like: DataSet ds = new DataSet(); using (var cmd = DBOracle.GetCommand()) { cmd.CommandText = sqlCommand; OracleDataAdapter adapter = new OracleDataAdapter(cmd);...

View Article

Update only certain columns in DB using Entity Framework

I have an entity that I know already exists in the database but which is not currently being tracked by the context. I force the context to track the entity using the Attach method on DbSet. Then set...

View Article
Browsing all 29 articles
Browse latest View live




Latest Images